More verbose error messages when application load fails.
[wine.git] / include / wine_gl.h
blobbc0a6036f9777495ac2e3692ab353f7733f44cb0
1 /* Wrapper for OpenGL includes...
2 Copyright 1998 - Lionel Ulmer
4 This wrapper is needed because Mesa uses also the CALLBACK / WINAPI
5 constants. */
7 #ifndef __WINE_WINE_GL_H
8 #define __WINE_WINE_GL_H
10 #include "config.h"
12 #if defined(HAVE_OPENGL)
14 #include "ts_xlib.h"
15 #include "x11drv.h"
17 /* As GLX relies on X, this is needed */
18 #define ENTER_GL() wine_tsx11_lock()
19 #define LEAVE_GL() wine_tsx11_unlock()
21 #undef APIENTRY
22 #undef CALLBACK
23 #undef WINAPI
25 #define XMD_H /* This is to prevent the Xmd.h inclusion bug to happen :-/ */
26 #include <GL/gl.h>
27 #include <GL/glx.h>
28 #ifdef HAVE_GL_GLEXT_H
29 # include <GL/glext.h>
30 #endif
31 #undef XMD_H
33 #undef APIENTRY
34 #undef CALLBACK
35 #undef WINAPI
37 /* Redefines the constants */
38 #define CALLBACK __stdcall
39 #define WINAPI __stdcall
40 #define APIENTRY WINAPI
42 #endif /* HAVE_OPENGL */
44 #endif /* __WINE_WINE_GL_H */