default:
g_assert_not_reached ();
}
+
+ //make sure no texture is in use in our opengl context
+ //in case we want to use the upload texture in an other opengl context
+ glBindTexture (GL_TEXTURE_RECTANGLE_ARB, 0);
}
g_debug ("failed to share opengl context %lud with %lud\n",
(gulong) priv->gl_context, (gulong) priv->external_gl_context);
else
- g_debug ("share opengl context succeed\n");
+ g_debug ("share opengl context succeed %lud\n", (gulong) priv->external_gl_context);
}
}
eglCreateContext (priv->display, config, priv->external_gl_context,
contextAttribs);
if (priv->gl_context != EGL_NO_CONTEXT)
- g_debug ("gl context created: %d\n", priv->gl_context);
+ g_debug ("gl context created: %lud, external: %lud\n", (gulong) priv->gl_context,
+ (gulong) priv->external_gl_context);
else
- g_debug ("failed to create glcontext %d, %d, %s\n", priv->gl_context,
- hWnd, EGLErrorString ());
+ g_debug ("failed to create glcontext %lud, extenal: %lud, win: %lud, %s\n",
+ (gulong) priv->gl_context, (gulong) priv->external_gl_context,
+ (gulong) hWnd, EGLErrorString ());
ReleaseDC (hWnd, priv->display);