mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-15 14:16:07 -06:00
GLCtrl: Fixed in gtk
git-svn-id: svn://ultimatepp.org/upp/trunk@11419 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
8f87700a0a
commit
d463573f49
1 changed files with 1 additions and 1 deletions
|
|
@ -42,7 +42,7 @@ void GLCtrl::Paint(Draw& w)
|
|||
if(pixmap) {
|
||||
GdkGLDrawable *gldrawable = GDK_GL_DRAWABLE(gdk_pixmap_set_gl_capability(pixmap, sGlconfig, NULL));
|
||||
if(gldrawable) {
|
||||
GdkGLContext *glcontext = gdk_gl_context_new(gldrawable, NULL, FALSE, GDK_GL_RGBA_TYPE);
|
||||
GdkGLContext *glcontext = gdk_gl_context_new(gldrawable, NULL, TRUE, GDK_GL_RGBA_TYPE);
|
||||
if(glcontext) {
|
||||
if(gdk_gl_drawable_gl_begin(gldrawable, glcontext)) {
|
||||
glViewport(0, 0, sz.cx, sz.cy);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue