1
#ifdef HAVE_DIX_CONFIG_H
2
#include <dix-config.h>
5
#include <X11/Xwindows.h>
12
#include <windowstr.h>
14
#include <GL/glxint.h>
15
#include <GL/glxtokens.h>
16
#include <scrnintstr.h>
17
#include <glxserver.h>
18
#include <glxscreens.h>
19
#include <glxdrawable.h>
20
#include <glxcontext.h>
23
#include <glxscreens.h>
24
#include <GL/internal/glcore.h>
29
unsigned enableDebug : 1;
30
unsigned enableTrace : 1;
32
unsigned dumpHWND : 1;
34
} glWinDebugSettingsRec, *glWinDebugSettingsPtr;
35
extern glWinDebugSettingsRec glWinDebugSettings;
39
__GLcontextModes *modes;
42
/* wrapped screen functions */
43
RealizeWindowProcPtr RealizeWindow;
44
UnrealizeWindowProcPtr UnrealizeWindow;
45
CopyWindowProcPtr CopyWindow;
48
extern glWinScreenRec glWinScreens[MAXSCREENS];
50
#define glWinGetScreenPriv(pScreen) &glWinScreens[pScreen->myNum]
51
#define glWinScreenPriv(pScreen) glWinScreenRec *pScreenPriv = glWinGetScreenPriv(pScreen);
54
#define GLWIN_TRACE() if (glWinDebugSettings.enableTrace) ErrorF("%s:%d: Trace\n", __FUNCTION__, __LINE__ )
55
#define GLWIN_TRACE_MSG(msg, args...) if (glWinDebugSettings.enableTrace) ErrorF("%s:%d: " msg, __FUNCTION__, __LINE__, ##args )
56
#define GLWIN_DEBUG_MSG(msg, args...) if (glWinDebugSettings.enableDebug) ErrorF("%s:%d: " msg, __FUNCTION__, __LINE__, ##args )
57
#define GLWIN_DEBUG_MSG2(msg, args...) if (glWinDebugSettings.enableDebug) ErrorF(msg, ##args )
60
#define GLWIN_TRACE_MSG(a, ...)
61
#define GLWIN_DEBUG_MSG(a, ...)
62
#define GLWIN_DEBUG_MSG2(a, ...)