summaryrefslogtreecommitdiffstats
path: root/progs/windml/uglstencil.c
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2001-09-10 19:21:13 +0000
committerBrian Paul <[email protected]>2001-09-10 19:21:13 +0000
commit306933046cdc70e20af7facea8bc8a975812787e (patch)
tree05c360b1c210159a76c602f1279c8d30db53325b /progs/windml/uglstencil.c
parent30230a9cd171128c34c55bd751242dbe07dc3a89 (diff)
WindML updates (Stephane Raimbault)
Diffstat (limited to 'progs/windml/uglstencil.c')
-rw-r--r--progs/windml/uglstencil.c27
1 files changed, 18 insertions, 9 deletions
diff --git a/progs/windml/uglstencil.c b/progs/windml/uglstencil.c
index 94e9f502596..07e8fc626f3 100644
--- a/progs/windml/uglstencil.c
+++ b/progs/windml/uglstencil.c
@@ -177,15 +177,15 @@ UGL_LOCAL int getEvent(void)
return(retVal);
}
-void windMLStencil (void);
+void windMLStencil (UGL_BOOL windMLMode);
void uglstencil (void)
{
taskSpawn("tStencil", 210, VX_FP_TASK, 100000,
- (FUNCPTR)windMLStencil, 0,1,2,3,4,5,6,7,8,9);
+ (FUNCPTR)windMLStencil,UGL_FALSE,1,2,3,4,5,6,7,8,9);
}
-void windMLStencil(void)
+void windMLStencil(UGL_BOOL windMLMode)
{
UGL_INPUT_DEVICE_ID keyboardDevId;
GLsizei width, height;
@@ -197,12 +197,21 @@ void windMLStencil(void)
uglDriverFind (UGL_EVENT_SERVICE_TYPE, 0, (UGL_UINT32 *)&eventServiceId);
qId = uglEventQCreate (eventServiceId, 100);
-
- umc = uglMesaCreateNewContextExt(GL_FALSE,
- 16,
- 8,
- 0,0,0,0,
- NULL);
+
+ if (windMLMode)
+ umc = uglMesaCreateNewContextExt(UGL_MESA_SINGLE
+ | UGL_MESA_WINDML_EXCLUSIVE,
+ 16,
+ 8,
+ 0,0,0,0,
+ NULL);
+ else
+ umc = uglMesaCreateNewContextExt(UGL_MESA_SINGLE,
+ 16,
+ 8,
+ 0,0,0,0,
+ NULL);
+
if (umc == NULL)
{
uglDeinitialize();