summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/i830
diff options
context:
space:
mode:
authorIan Romanick <[email protected]>2005-07-28 21:57:17 +0000
committerIan Romanick <[email protected]>2005-07-28 21:57:17 +0000
commitf7c9eafa856623d5ce72afb8b20b7ccbcc3e671d (patch)
treeeae60a4cd586b0044edd787c5c11e3e8ea70fcd8 /src/mesa/drivers/dri/i830
parent68679d2b9e526a351c37c89c78ec50e36f2c9087 (diff)
glxEnableExtension is a platform-specific function exported by the loader.
Therefore, drivers should not require it to run.
Diffstat (limited to 'src/mesa/drivers/dri/i830')
-rw-r--r--src/mesa/drivers/dri/i830/i830_screen.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/mesa/drivers/dri/i830/i830_screen.c b/src/mesa/drivers/dri/i830/i830_screen.c
index b1a5618f410..af5049d6296 100644
--- a/src/mesa/drivers/dri/i830/i830_screen.c
+++ b/src/mesa/drivers/dri/i830/i830_screen.c
@@ -147,10 +147,6 @@ static GLboolean i830InitDriver(__DRIscreenPrivate *sPriv)
void * const psc = sPriv->psc->screenConfigs;
- if ( glx_enable_extension == NULL ) {
- return GL_FALSE;
- }
-
/* Allocate the private area */
i830Screen = (i830ScreenPrivate *)CALLOC(sizeof(i830ScreenPrivate));
if (!i830Screen) {
@@ -286,7 +282,9 @@ static GLboolean i830InitDriver(__DRIscreenPrivate *sPriv)
}
#endif
- (*glx_enable_extension)( psc, "GLX_SGI_make_current_read" );
+ if ( glx_enable_extension == NULL ) {
+ (*glx_enable_extension)( psc, "GLX_SGI_make_current_read" );
+ }
return GL_TRUE;
}