]> git.cworth.org Git - apitrace/blobdiff - retrace/glretrace_egl.cpp
Share more code between glretrace and d3dretrace.
[apitrace] / retrace / glretrace_egl.cpp
index d7b14ecad6c5e7db5861b42083e1b6b5fd3be2d5..1f8020a45ffe5c6694d012d31aba90aa6a69297e 100644 (file)
@@ -169,7 +169,7 @@ static void retrace_eglCreateContext(trace::Call &call) {
     }
 
 
-    glws::Context *context = glws::createContext(glretrace::visual[profile], share_context, profile);
+    glws::Context *context = glws::createContext(glretrace::visual[profile], share_context, profile, retrace::debug);
     if (!context) {
         const char *name;
         switch (profile) {
@@ -218,7 +218,7 @@ static void retrace_eglMakeCurrent(trace::Call &call) {
 
     if (drawable && context) {
         glFlush();
-        if (!double_buffer) {
+        if (!retrace::doubleBuffer) {
             frame_complete(call);
         }
     }
@@ -238,7 +238,7 @@ static void retrace_eglMakeCurrent(trace::Call &call) {
 static void retrace_eglSwapBuffers(trace::Call &call) {
     frame_complete(call);
 
-    if (double_buffer && drawable) {
+    if (retrace::doubleBuffer && drawable) {
         drawable->swapBuffers();
     } else {
         glFlush();