summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@gmail.com>2013-09-23 22:00:06 +0200
committerMarc-André Lureau <marcandre.lureau@gmail.com>2013-09-30 02:19:51 +0200
commitb2b3243031383dcd6e1c07c0bb821123b6a64f25 (patch)
treedc4bca4ef13f33655df47240ce34a4da72298ef2
parent37548f17e45bf21038f13b2820047f43c2d83154 (diff)
downloadspice-b2b3243031383dcd6e1c07c0bb821123b6a64f25.tar.gz
spice-b2b3243031383dcd6e1c07c0bb821123b6a64f25.tar.xz
spice-b2b3243031383dcd6e1c07c0bb821123b6a64f25.zip
spicec: disable stencil test with primary fbo
The primary buffer doesn't use stencil test. However, this should be explicitely disabled, since the canvas might change stencil state, and this will affect primary stencil buffer, making some of further update operations clipped in unwanted ways.
-rw-r--r--client/x11/platform.cpp2
-rw-r--r--client/x11/red_pixmap_gl.cpp1
2 files changed, 2 insertions, 1 deletions
diff --git a/client/x11/platform.cpp b/client/x11/platform.cpp
index 475ee6a9..b8563b3f 100644
--- a/client/x11/platform.cpp
+++ b/client/x11/platform.cpp
@@ -3231,7 +3231,7 @@ void Platform::init()
GLX_GREEN_SIZE, 8,
GLX_BLUE_SIZE, 8,
GLX_ALPHA_SIZE, 8,
- GLX_STENCIL_SIZE, 4,
+ GLX_STENCIL_SIZE, 0,
GLX_DEPTH_SIZE, 0,
None
};
diff --git a/client/x11/red_pixmap_gl.cpp b/client/x11/red_pixmap_gl.cpp
index 1a586286..7978a40b 100644
--- a/client/x11/red_pixmap_gl.cpp
+++ b/client/x11/red_pixmap_gl.cpp
@@ -246,6 +246,7 @@ void RedPixmapGL::pre_copy()
glDisable(GL_BLEND);
glDisable(GL_ALPHA_TEST);
glDisable(GL_COLOR_LOGIC_OP);
+ glDisable(GL_STENCIL_TEST);
glColor3f(1, 1, 1);
}