radeon/dri2: add gl20 bits for r300/r600 just like dri1 does
authorDave Airlie <airlied@redhat.com>
Thu, 3 Sep 2009 02:01:27 +0000 (12:01 +1000)
committerDave Airlie <airlied@redhat.com>
Thu, 3 Sep 2009 02:01:27 +0000 (12:01 +1000)
src/mesa/drivers/dri/radeon/radeon_screen.c

index daee3b85d9c9813ddcb6c815d3165c7b2c025784..5ffb55db5efc3c6761a2ab62481d15dc847f1179 100644 (file)
@@ -1690,6 +1690,8 @@ __DRIconfig **radeonInitScreen2(__DRIscreenPrivate *psp)
    driInitSingleExtension( NULL, NV_vp_extension );
    driInitSingleExtension( NULL, ATI_fs_extension );
    driInitExtensions( NULL, point_extensions, GL_FALSE );
+#elif (defined(RADEON_COMMON_FOR_R300) || defined(RADEON_COMMON_FOR_R600))
+   driInitSingleExtension( NULL, gl_20_extension );
 #endif
 
    if (!radeonInitDriver(psp)) {