Commit 8310d4ae authored by Alexandre Julliard's avatar Alexandre Julliard

winex11.drv: Fixed the prototype of many OpenGL functions.

parent 2506677c
...@@ -248,7 +248,7 @@ MAKE_FUNCPTR(glNewList) ...@@ -248,7 +248,7 @@ MAKE_FUNCPTR(glNewList)
MAKE_FUNCPTR(glPixelStorei) MAKE_FUNCPTR(glPixelStorei)
#undef MAKE_FUNCPTR #undef MAKE_FUNCPTR
BOOL X11DRV_WineGL_InitOpenglInfo() static BOOL X11DRV_WineGL_InitOpenglInfo(void)
{ {
static BOOL infoInitialized = FALSE; static BOOL infoInitialized = FALSE;
...@@ -1246,7 +1246,7 @@ HGLRC X11DRV_wglCreateContext(X11DRV_PDEVICE *physDev) ...@@ -1246,7 +1246,7 @@ HGLRC X11DRV_wglCreateContext(X11DRV_PDEVICE *physDev)
} }
/* OpenGL32 wglDeleteContext */ /* OpenGL32 wglDeleteContext */
BOOL WINAPI X11DRV_wglDeleteContext(HGLRC hglrc) BOOL X11DRV_wglDeleteContext(HGLRC hglrc)
{ {
Wine_GLContext *ctx = (Wine_GLContext *) hglrc; Wine_GLContext *ctx = (Wine_GLContext *) hglrc;
BOOL ret = TRUE; BOOL ret = TRUE;
...@@ -1408,7 +1408,7 @@ BOOL X11DRV_wglMakeContextCurrentARB(X11DRV_PDEVICE* hDrawDev, X11DRV_PDEVICE* h ...@@ -1408,7 +1408,7 @@ BOOL X11DRV_wglMakeContextCurrentARB(X11DRV_PDEVICE* hDrawDev, X11DRV_PDEVICE* h
} }
/* OpenGL32 wglShaderLists */ /* OpenGL32 wglShaderLists */
BOOL WINAPI X11DRV_wglShareLists(HGLRC hglrc1, HGLRC hglrc2) { BOOL X11DRV_wglShareLists(HGLRC hglrc1, HGLRC hglrc2) {
Wine_GLContext *org = (Wine_GLContext *) hglrc1; Wine_GLContext *org = (Wine_GLContext *) hglrc1;
Wine_GLContext *dest = (Wine_GLContext *) hglrc2; Wine_GLContext *dest = (Wine_GLContext *) hglrc2;
...@@ -1585,7 +1585,7 @@ BOOL X11DRV_wglUseFontBitmapsW(X11DRV_PDEVICE *physDev, DWORD first, DWORD count ...@@ -1585,7 +1585,7 @@ BOOL X11DRV_wglUseFontBitmapsW(X11DRV_PDEVICE *physDev, DWORD first, DWORD count
} }
/* WGL helper function which handles differences in glGetIntegerv from WGL and GLX */ /* WGL helper function which handles differences in glGetIntegerv from WGL and GLX */
void X11DRV_wglGetIntegerv(GLenum pname, GLint* params) { static void WINAPI X11DRV_wglGetIntegerv(GLenum pname, GLint* params) {
TRACE("pname: 0x%x, params: %p\n", pname, params); TRACE("pname: 0x%x, params: %p\n", pname, params);
if (pname == GL_DEPTH_BITS) { if (pname == GL_DEPTH_BITS) {
GLXContext gl_ctx = pglXGetCurrentContext(); GLXContext gl_ctx = pglXGetCurrentContext();
...@@ -1967,7 +1967,7 @@ static GLboolean WINAPI X11DRV_wglSetPbufferAttribARB(HPBUFFERARB hPbuffer, cons ...@@ -1967,7 +1967,7 @@ static GLboolean WINAPI X11DRV_wglSetPbufferAttribARB(HPBUFFERARB hPbuffer, cons
} }
/* WGL_ARB_pixel_format: wglChoosePixelFormatARB */ /* WGL_ARB_pixel_format: wglChoosePixelFormatARB */
GLboolean WINAPI X11DRV_wglChoosePixelFormatARB(HDC hdc, const int *piAttribIList, const FLOAT *pfAttribFList, UINT nMaxFormats, int *piFormats, UINT *nNumFormats) static GLboolean WINAPI X11DRV_wglChoosePixelFormatARB(HDC hdc, const int *piAttribIList, const FLOAT *pfAttribFList, UINT nMaxFormats, int *piFormats, UINT *nNumFormats)
{ {
int gl_test = 0; int gl_test = 0;
int attribs[256]; int attribs[256];
...@@ -2093,14 +2093,14 @@ GLboolean WINAPI X11DRV_wglChoosePixelFormatARB(HDC hdc, const int *piAttribILis ...@@ -2093,14 +2093,14 @@ GLboolean WINAPI X11DRV_wglChoosePixelFormatARB(HDC hdc, const int *piAttribILis
} }
/* WGL_ARB_pixel_format: wglGetPixelFormatAttribfvARB */ /* WGL_ARB_pixel_format: wglGetPixelFormatAttribfvARB */
GLboolean WINAPI X11DRV_wglGetPixelFormatAttribfvARB(HDC hdc, int iPixelFormat, int iLayerPlane, UINT nAttributes, const int *piAttributes, FLOAT *pfValues) static GLboolean WINAPI X11DRV_wglGetPixelFormatAttribfvARB(HDC hdc, int iPixelFormat, int iLayerPlane, UINT nAttributes, const int *piAttributes, FLOAT *pfValues)
{ {
FIXME("(%p, %d, %d, %d, %p, %p): stub\n", hdc, iPixelFormat, iLayerPlane, nAttributes, piAttributes, pfValues); FIXME("(%p, %d, %d, %d, %p, %p): stub\n", hdc, iPixelFormat, iLayerPlane, nAttributes, piAttributes, pfValues);
return GL_FALSE; return GL_FALSE;
} }
/* WGL_ARB_pixel_format: wglGetPixelFormatAttribivARB */ /* WGL_ARB_pixel_format: wglGetPixelFormatAttribivARB */
GLboolean WINAPI X11DRV_wglGetPixelFormatAttribivARB(HDC hdc, int iPixelFormat, int iLayerPlane, UINT nAttributes, const int *piAttributes, int *piValues) static GLboolean WINAPI X11DRV_wglGetPixelFormatAttribivARB(HDC hdc, int iPixelFormat, int iLayerPlane, UINT nAttributes, const int *piAttributes, int *piValues)
{ {
UINT i; UINT i;
GLXFBConfig* cfgs = NULL; GLXFBConfig* cfgs = NULL;
...@@ -2403,19 +2403,19 @@ static GLboolean WINAPI X11DRV_wglReleaseTexImageARB(HPBUFFERARB hPbuffer, int i ...@@ -2403,19 +2403,19 @@ static GLboolean WINAPI X11DRV_wglReleaseTexImageARB(HPBUFFERARB hPbuffer, int i
} }
/* WGL_EXT_extensions_string: wglGetExtensionsStringEXT */ /* WGL_EXT_extensions_string: wglGetExtensionsStringEXT */
const char * WINAPI X11DRV_wglGetExtensionsStringEXT(void) { static const char * WINAPI X11DRV_wglGetExtensionsStringEXT(void) {
TRACE("() returning \"%s\"\n", WineGLInfo.wglExtensions); TRACE("() returning \"%s\"\n", WineGLInfo.wglExtensions);
return WineGLInfo.wglExtensions; return WineGLInfo.wglExtensions;
} }
/* WGL_EXT_swap_control: wglGetSwapIntervalEXT */ /* WGL_EXT_swap_control: wglGetSwapIntervalEXT */
int WINAPI X11DRV_wglGetSwapIntervalEXT(VOID) { static int WINAPI X11DRV_wglGetSwapIntervalEXT(VOID) {
FIXME("(),stub!\n"); FIXME("(),stub!\n");
return swap_interval; return swap_interval;
} }
/* WGL_EXT_swap_control: wglSwapIntervalEXT */ /* WGL_EXT_swap_control: wglSwapIntervalEXT */
BOOL WINAPI X11DRV_wglSwapIntervalEXT(int interval) { static BOOL WINAPI X11DRV_wglSwapIntervalEXT(int interval) {
TRACE("(%d)\n", interval); TRACE("(%d)\n", interval);
swap_interval = interval; swap_interval = interval;
if (NULL != pglXSwapIntervalSGI) { if (NULL != pglXSwapIntervalSGI) {
...@@ -2713,10 +2713,6 @@ XVisualInfo *X11DRV_setup_opengl_visual( Display *display ) ...@@ -2713,10 +2713,6 @@ XVisualInfo *X11DRV_setup_opengl_visual( Display *display )
#else /* no OpenGL includes */ #else /* no OpenGL includes */
void X11DRV_OpenGL_Init(Display *display)
{
}
/*********************************************************************** /***********************************************************************
* ChoosePixelFormat (X11DRV.@) * ChoosePixelFormat (X11DRV.@)
*/ */
...@@ -2769,13 +2765,13 @@ BOOL X11DRV_SwapBuffers(X11DRV_PDEVICE *physDev) { ...@@ -2769,13 +2765,13 @@ BOOL X11DRV_SwapBuffers(X11DRV_PDEVICE *physDev) {
} }
/* OpenGL32 wglCreateContext */ /* OpenGL32 wglCreateContext */
HGLRC WINAPI X11DRV_wglCreateContext(HDC hdc) { HGLRC X11DRV_wglCreateContext(X11DRV_PDEVICE *physDev) {
ERR_(opengl)("No OpenGL support compiled in.\n"); ERR_(opengl)("No OpenGL support compiled in.\n");
return NULL; return NULL;
} }
/* OpenGL32 wglDeleteContext */ /* OpenGL32 wglDeleteContext */
BOOL WINAPI X11DRV_wglDeleteContext(HGLRC hglrc) { BOOL X11DRV_wglDeleteContext(HGLRC hglrc) {
ERR_(opengl)("No OpenGL support compiled in.\n"); ERR_(opengl)("No OpenGL support compiled in.\n");
return FALSE; return FALSE;
} }
...@@ -2786,27 +2782,32 @@ PROC X11DRV_wglGetProcAddress(LPCSTR lpszProc) { ...@@ -2786,27 +2782,32 @@ PROC X11DRV_wglGetProcAddress(LPCSTR lpszProc) {
return NULL; return NULL;
} }
BOOL X11DRV_wglMakeContextCurrentARB(X11DRV_PDEVICE* hDrawDev, X11DRV_PDEVICE* hReadDev, HGLRC hglrc) {
ERR_(opengl)("No OpenGL support compiled in.\n");
return FALSE;
}
/* OpenGL32 wglMakeCurrent */ /* OpenGL32 wglMakeCurrent */
BOOL WINAPI X11DRV_wglMakeCurrent(HDC hdc, HGLRC hglrc) { BOOL X11DRV_wglMakeCurrent(X11DRV_PDEVICE *physDev, HGLRC hglrc) {
ERR_(opengl)("No OpenGL support compiled in.\n"); ERR_(opengl)("No OpenGL support compiled in.\n");
return FALSE; return FALSE;
} }
/* OpenGL32 wglShaderLists */ /* OpenGL32 wglShaderLists */
BOOL WINAPI X11DRV_wglShareLists(HGLRC hglrc1, HGLRC hglrc2) { BOOL X11DRV_wglShareLists(HGLRC hglrc1, HGLRC hglrc2) {
ERR_(opengl)("No OpenGL support compiled in.\n"); ERR_(opengl)("No OpenGL support compiled in.\n");
return FALSE; return FALSE;
} }
/* OpenGL32 wglUseFontBitmapsA */ /* OpenGL32 wglUseFontBitmapsA */
BOOL WINAPI X11DRV_wglUseFontBitmapsA(HDC hdc, DWORD first, DWORD count, DWORD listBase) BOOL X11DRV_wglUseFontBitmapsA(X11DRV_PDEVICE *physDev, DWORD first, DWORD count, DWORD listBase)
{ {
ERR_(opengl)("No OpenGL support compiled in.\n"); ERR_(opengl)("No OpenGL support compiled in.\n");
return FALSE; return FALSE;
} }
/* OpenGL32 wglUseFontBitmapsW */ /* OpenGL32 wglUseFontBitmapsW */
BOOL WINAPI X11DRV_wglUseFontBitmapsW(HDC hdc, DWORD first, DWORD count, DWORD listBase) BOOL X11DRV_wglUseFontBitmapsW(X11DRV_PDEVICE *physDev, DWORD first, DWORD count, DWORD listBase)
{ {
ERR_(opengl)("No OpenGL support compiled in.\n"); ERR_(opengl)("No OpenGL support compiled in.\n");
return FALSE; return FALSE;
......
...@@ -131,11 +131,11 @@ ...@@ -131,11 +131,11 @@
@ cdecl ForceXIMReset(long) X11DRV_ForceXIMReset @ cdecl ForceXIMReset(long) X11DRV_ForceXIMReset
# OpenGL # OpenGL
@ cdecl wglCreateContext(long) X11DRV_wglCreateContext @ cdecl wglCreateContext(ptr) X11DRV_wglCreateContext
@ cdecl wglDeleteContext(long) X11DRV_wglDeleteContext @ cdecl wglDeleteContext(long) X11DRV_wglDeleteContext
@ cdecl wglGetProcAddress(ptr) X11DRV_wglGetProcAddress @ cdecl wglGetProcAddress(str) X11DRV_wglGetProcAddress
@ cdecl wglMakeContextCurrentARB(ptr ptr long) X11DRV_wglMakeContextCurrentARB @ cdecl wglMakeContextCurrentARB(ptr ptr long) X11DRV_wglMakeContextCurrentARB
@ cdecl wglMakeCurrent(long long) X11DRV_wglMakeCurrent @ cdecl wglMakeCurrent(ptr long) X11DRV_wglMakeCurrent
@ cdecl wglShareLists(long long) X11DRV_wglShareLists @ cdecl wglShareLists(long long) X11DRV_wglShareLists
@ cdecl wglUseFontBitmapsA(long long long long) X11DRV_wglUseFontBitmapsA @ cdecl wglUseFontBitmapsA(ptr long long long) X11DRV_wglUseFontBitmapsA
@ cdecl wglUseFontBitmapsW(long long long long) X11DRV_wglUseFontBitmapsW @ cdecl wglUseFontBitmapsW(ptr long long long) X11DRV_wglUseFontBitmapsW
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment