summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/x11/fakeglx.c
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2003-01-14 04:49:07 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2003-01-14 04:49:07 +0000
commit3c5bfac63bcbc4028c552fe74d904e6a3416ff36 (patch)
treeb6bda8011e2087d521be2c6481a414d06836849f /src/mesa/drivers/x11/fakeglx.c
parente1e446bf775a7f2ea93b4e54c7748ef603500977 (diff)
initial code for render-to-texture
Diffstat (limited to 'src/mesa/drivers/x11/fakeglx.c')
-rw-r--r--src/mesa/drivers/x11/fakeglx.c37
1 files changed, 33 insertions, 4 deletions
diff --git a/src/mesa/drivers/x11/fakeglx.c b/src/mesa/drivers/x11/fakeglx.c
index 3027c3bb60..480bc0a506 100644
--- a/src/mesa/drivers/x11/fakeglx.c
+++ b/src/mesa/drivers/x11/fakeglx.c
@@ -1,4 +1,4 @@
-/* $Id: fakeglx.c,v 1.77 2002/11/18 15:11:49 brianp Exp $ */
+/* $Id: fakeglx.c,v 1.78 2003/01/14 04:49:07 brianp Exp $ */
/*
* Mesa 3-D graphics library
@@ -81,7 +81,8 @@
"GLX_EXT_visual_rating " \
"GLX_SGI_video_sync " \
"GLX_SGIX_fbconfig " \
- "GLX_SGIX_pbuffer"
+ "GLX_SGIX_pbuffer" \
+ "GLX_ARB_render_texture"
/* Silence compiler warnings */
@@ -2615,7 +2616,7 @@ Fake_glXSet3DfxModeMESA( int mode )
-/*** AGP memory allocation ***/
+/*** GLX_NV_vertex_array range ***/
static void *
Fake_glXAllocateMemoryNV( GLsizei size,
GLfloat readFrequency,
@@ -2637,7 +2638,7 @@ Fake_glXFreeMemoryNV( GLvoid *pointer )
}
-/*** GLX_MESA_agp_offset */
+/*** GLX_MESA_agp_offset ***/
static GLuint
Fake_glXGetAGPOffsetMESA( const GLvoid *pointer )
@@ -2647,6 +2648,29 @@ Fake_glXGetAGPOffsetMESA( const GLvoid *pointer )
}
+/*** GLX_ARB_render_texture ***/
+
+static Bool
+Fake_glXBindTexImageARB( Display *dpy, GLXPbuffer pbuffer, int buffer )
+{
+ return False;
+}
+
+
+static Bool
+Fake_glXReleaseTexImageARB(Display *dpy, GLXPbuffer pbuffer, int buffer )
+{
+ return False;
+}
+
+
+static Bool
+Fake_glXDrawableAttribARB( Display *dpy, GLXDrawable draw, const int *attribList )
+{
+ return False;
+}
+
+
extern struct _glxapi_table *_mesa_GetGLXDispatchTable(void);
struct _glxapi_table *_mesa_GetGLXDispatchTable(void)
@@ -2792,5 +2816,10 @@ struct _glxapi_table *_mesa_GetGLXDispatchTable(void)
/*** GLX_MESA_agp_offset ***/
glx.GetAGPOffsetMESA = Fake_glXGetAGPOffsetMESA;
+ /*** GLX_ARB_render_texture ***/
+ glx.BindTexImageARB = Fake_glXBindTexImageARB;
+ glx.ReleaseTexImageARB = Fake_glXReleaseTexImageARB;
+ glx.DrawableAttribARB = Fake_glXDrawableAttribARB;
+
return &glx;
}