diff options
author | Marc-André Lureau <marcandre.lureau@gmail.com> | 2013-09-23 22:00:06 +0200 |
---|---|---|
committer | Marc-André Lureau <marcandre.lureau@gmail.com> | 2013-09-30 02:19:51 +0200 |
commit | b2b3243031383dcd6e1c07c0bb821123b6a64f25 (patch) | |
tree | dc4bca4ef13f33655df47240ce34a4da72298ef2 /client | |
parent | 37548f17e45bf21038f13b2820047f43c2d83154 (diff) | |
download | spice-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.
Diffstat (limited to 'client')
-rw-r--r-- | client/x11/platform.cpp | 2 | ||||
-rw-r--r-- | client/x11/red_pixmap_gl.cpp | 1 |
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); } |