windows_unbind_context(pcp->windowsContext);
}
-static void
-driwindows_bind_tex_image(Display * dpy,
- GLXDrawable drawable,
- int buffer, const int *attrib_list)
-{
- struct glx_context *gc = __glXGetCurrentContext();
- struct driwindows_context *pcp = (struct driwindows_context *) gc;
- __GLXDRIdrawable *base = GetGLXDRIDrawable(dpy, drawable);
- struct driwindows_drawable *pdraw = (struct driwindows_drawable *) base;
-
- __glXInitialize(dpy);
-
- if (pdraw != NULL) {
- windows_setTexBuffer(pcp->windowsContext,
- pdraw->base.textureTarget,
- pdraw->base.textureFormat,
- pdraw->windowsDrawable);
- }
-}
-
-static void
-driwindows_release_tex_image(Display * dpy, GLXDrawable drawable, int buffer)
-{
- struct glx_context *gc = __glXGetCurrentContext();
- struct driwindows_context *pcp = (struct driwindows_context *) gc;
- __GLXDRIdrawable *base = GetGLXDRIDrawable(dpy, drawable);
- struct glx_display *dpyPriv = __glXInitialize(dpy);
- struct driwindows_drawable *pdraw = (struct driwindows_drawable *) base;
-
- if (dpyPriv != NULL && pdraw != NULL) {
- windows_releaseTexBuffer(pcp->windowsContext,
- pdraw->base.textureTarget,
- pdraw->windowsDrawable);
- }
-}
-
static const struct glx_context_vtable driwindows_context_vtable = {
.destroy = driwindows_destroy_context,
.bind = driwindows_bind_context,
.unbind = driwindows_unbind_context,
.wait_gl = NULL,
.wait_x = NULL,
- .bind_tex_image = driwindows_bind_tex_image,
- .release_tex_image = driwindows_release_tex_image,
};
static struct glx_context *
*gl_extensions = result.gl_extensions;
*wgl_extensions = result.wgl_extensions;
}
-
-void windows_setTexBuffer(windowsContext *context, int textureTarget,
- int textureFormat, windowsDrawable *drawable)
-{
- // not yet implemented
-}
-
-void windows_releaseTexBuffer(windowsContext *context, int textureTarget,
- windowsDrawable *drawable)
-{
- // not yet implemented
-}
int windows_check_renderer(void);
void windows_extensions(char **gl_extensions, char **wgl_extensions);
-void windows_setTexBuffer(windowsContext *context, int textureTarget,
- int textureFormat, windowsDrawable *drawable);
-void windows_releaseTexBuffer(windowsContext *context, int textureTarget,
- windowsDrawable *drawable);
-
#endif /* windowsgl_h */