Browse Source

Fix initial x11 context

gh-pages
falkTX 10 years ago
parent
commit
5cdf7878a4
2 changed files with 4 additions and 0 deletions
  1. +2
    -0
      dgl/Base.hpp
  2. +2
    -0
      dgl/src/pugl/pugl_x11.c

+ 2
- 0
dgl/Base.hpp View File

@@ -76,7 +76,9 @@
#ifdef DISTRHO_OS_MAC
# include "OpenGL/gl.h"
#else
# define GL_GLEXT_PROTOTYPES
# include "GL/gl.h"
# include "GL/glext.h"
#endif

// -----------------------------------------------------------------------


+ 2
- 0
dgl/src/pugl/pugl_x11.c View File

@@ -147,6 +147,8 @@ puglCreateWindow(PuglView* view, const char* title)

XFree(vi);

glXMakeCurrent(view->impl->display, view->impl->win, view->impl->ctx);

return 0;
}



Loading…
Cancel
Save