summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/dri/r128
diff options
context:
space:
mode:
authorJon Smirl <jonsmirl@gmail.com>2004-06-03 02:34:31 +0000
committerJon Smirl <jonsmirl@gmail.com>2004-06-03 02:34:31 +0000
commit8f980b0e748f7c5a49e75c00ef4fa0b077d78197 (patch)
tree12b40dfb6eb3aee4f86fcc9e398e8902a74cdc64 /src/mesa/drivers/dri/r128
parentba3d643c49ce16f8dcddac56308588839c55bc87 (diff)
Open/Close FullScreen die. unichrome and savage implemented, code is ifdef'd out
Diffstat (limited to 'src/mesa/drivers/dri/r128')
-rw-r--r--src/mesa/drivers/dri/r128/r128_screen.c41
1 files changed, 30 insertions, 11 deletions
diff --git a/src/mesa/drivers/dri/r128/r128_screen.c b/src/mesa/drivers/dri/r128/r128_screen.c
index 48a17ab172..26185fa062 100644
--- a/src/mesa/drivers/dri/r128/r128_screen.c
+++ b/src/mesa/drivers/dri/r128/r128_screen.c
@@ -254,15 +254,6 @@ r128DestroyScreen( __DRIscreenPrivate *sPriv )
}
-/* Initialize the fullscreen mode.
- */
-static GLboolean
-r128OpenCloseFullScreen( __DRIcontextPrivate *driContextPriv )
-{
- return GL_TRUE;
-}
-
-
/* Create and initialize the Mesa and driver specific pixmap buffer
* data.
*/
@@ -335,6 +326,36 @@ r128InitDriver( __DRIscreenPrivate *sPriv )
return GL_TRUE;
}
+#ifndef _SOLO
+/**
+ * This function is called by libGL.so as soon as libGL.so is loaded.
+ * This is where we register new extension functions with the dispatcher.
+ *
+ * \todo This interface has been deprecated, so we should probably remove
+ * this function before the next XFree86 release.
+ */
+void __driRegisterExtensions( void )
+{
+#if 0
+ /* KW: This is done slightly differently to the other drivers and
+ dri_interface.h doesn't seem to cope.
+ */
+ PFNGLXENABLEEXTENSIONPROC
+ glx_enable_extension;
+
+ if ( driCompareGLXAPIVersion( 20030317 ) >= 0 ) {
+ glx_enable_extension = (PFNGLXENABLEEXTENSIONPROC)
+ glXGetProcAddress( (const GLubyte *) "__glXEnableExtension" );
+
+ if ( glx_enable_extension != NULL ) {
+ glx_enable_extension( "GLX_SGI_swap_control", GL_FALSE );
+ glx_enable_extension( "GLX_SGI_video_sync", GL_FALSE );
+ glx_enable_extension( "GLX_MESA_swap_control", GL_FALSE );
+ }
+ }
+#endif
+}
+#endif
static struct __DriverAPIRec r128API = {
.InitDriver = r128InitDriver,
@@ -346,8 +367,6 @@ static struct __DriverAPIRec r128API = {
.SwapBuffers = r128SwapBuffers,
.MakeCurrent = r128MakeCurrent,
.UnbindContext = r128UnbindContext,
- .OpenFullScreen = r128OpenCloseFullScreen,
- .CloseFullScreen = r128OpenCloseFullScreen,
.GetSwapInfo = NULL,
.GetMSC = driGetMSC32,
.WaitForMSC = driWaitForMSC32,