aboutsummaryrefslogtreecommitdiffstats
path: root/vncviewer
diff options
context:
space:
mode:
Diffstat (limited to 'vncviewer')
-rw-r--r--vncviewer/PlatformPixelBuffer.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/vncviewer/PlatformPixelBuffer.cxx b/vncviewer/PlatformPixelBuffer.cxx
index e6a054ab..be6f7049 100644
--- a/vncviewer/PlatformPixelBuffer.cxx
+++ b/vncviewer/PlatformPixelBuffer.cxx
@@ -58,6 +58,9 @@ PlatformPixelBuffer::PlatformPixelBuffer(int width, int height) :
data = (rdr::U8*)xim->data;
stride = xim->bytes_per_line / (getPF().bpp/8);
+
+ // On X11, the Pixmap backing this Surface is uninitialized.
+ clear(0, 0, 0);
#else
FullFramePixelBuffer::data = (rdr::U8*)Surface::data;
stride = width;