aboutsummaryrefslogtreecommitdiff
path: root/pugl
diff options
context:
space:
mode:
authorHanspeter Portner <dev@open-music-kontrollers.ch>2018-09-02 11:22:23 +0200
committerHanspeter Portner <dev@open-music-kontrollers.ch>2018-09-02 11:22:23 +0200
commit9deaa21b399e34f0cace2413013e060262bea063 (patch)
tree2b9b04995684da80652840e9e4881cf894a1c265 /pugl
parent764fc4f9a640d7b5a7c616f1f61f4f45ed48d25d (diff)
parent77095d63e4b4bc5e6b4c1f5c36550b1c2eff7001 (diff)
downloadsynthpod-9deaa21b399e34f0cace2413013e060262bea063.tar.xz
Merge commit '77095d63e4b4bc5e6b4c1f5c36550b1c2eff7001'
Diffstat (limited to 'pugl')
-rw-r--r--pugl/pugl/pugl_osx.m6
-rw-r--r--pugl/pugl/pugl_x11.c16
2 files changed, 7 insertions, 15 deletions
diff --git a/pugl/pugl/pugl_osx.m b/pugl/pugl/pugl_osx.m
index 5f57798c..014d553a 100644
--- a/pugl/pugl/pugl_osx.m
+++ b/pugl/pugl/pugl_osx.m
@@ -544,12 +544,6 @@ void
puglEnterContext(PuglView* view)
{
[[view->impl->glview openGLContext] makeCurrentContext];
-#ifdef PUGL_HAVE_CAIRO
- if (view->ctx_type & PUGL_CAIRO) {
- cairo_set_source_rgb(view->impl->cr, 0, 0, 0);
- cairo_paint(view->impl->cr);
- }
-#endif
}
void
diff --git a/pugl/pugl/pugl_x11.c b/pugl/pugl/pugl_x11.c
index a8daac45..28fe99ff 100644
--- a/pugl/pugl/pugl_x11.c
+++ b/pugl/pugl/pugl_x11.c
@@ -60,7 +60,8 @@ static int attrListDbl[] = {
GLX_RED_SIZE , 4,
GLX_GREEN_SIZE , 4,
GLX_BLUE_SIZE , 4,
- GLX_DEPTH_SIZE , 16,
+ GLX_DEPTH_SIZE , 8,
+ GLX_STENCIL_SIZE , 8,
/* GLX_SAMPLE_BUFFERS , 1, */
/* GLX_SAMPLES , 4, */
None
@@ -73,7 +74,8 @@ static int attrListSgl[] = {
GLX_RED_SIZE , 4,
GLX_GREEN_SIZE , 4,
GLX_BLUE_SIZE , 4,
- GLX_DEPTH_SIZE , 16,
+ GLX_DEPTH_SIZE , 8,
+ GLX_STENCIL_SIZE , 8,
/* GLX_SAMPLE_BUFFERS , 1, */
/* GLX_SAMPLES , 4, */
None
@@ -222,12 +224,6 @@ puglEnterContext(PuglView* view)
glXMakeCurrent(view->impl->display, view->impl->win, view->impl->ctx);
}
#endif
-#ifdef PUGL_HAVE_CAIRO
- if (view->ctx_type & PUGL_CAIRO) {
- cairo_set_source_rgb(view->impl->cr, 0, 0, 0);
- cairo_paint(view->impl->cr);
- }
-#endif
}
void
@@ -742,7 +738,9 @@ puglProcessEvents(PuglView* view)
}
}
- if (config_event.type) {
+ if (config_event.type
+ && ( (view->width != config_event.configure.width)
+ || (view->height != config_event.configure.height) )) {
#ifdef PUGL_HAVE_CAIRO
if (view->ctx_type == PUGL_CAIRO) {
// Resize surfaces/contexts before dispatching