Skip to content

Commit

Permalink
no need to initialize the buffer with zeroes, we initialize with real…
Browse files Browse the repository at this point in the history
… data immediately after

git-svn-id: https://xpra.org/svn/Xpra/trunk@21691 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Feb 18, 2019
1 parent 32095a5 commit fe90f68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/xpra/client/gl/gl_window_backing_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -1079,7 +1079,7 @@ def update_planar_textures(self, x, y, width, height, img, pixel_format, scaling
glTexParameteri(target, GL_TEXTURE_MAG_FILTER, mag_filter)
glTexParameteri(target, GL_TEXTURE_MIN_FILTER, GL_NEAREST)
set_texture_level()
glTexImage2D(target, 0, GL_LUMINANCE, width//div_w, height//div_h, 0, GL_LUMINANCE, GL_UNSIGNED_BYTE, None)
#glTexImage2D(target, 0, GL_LUMINANCE, width//div_w, height//div_h, 0, GL_LUMINANCE, GL_UNSIGNED_BYTE, None)
#glBindTexture(target, 0) #redundant: we rebind below:

self.gl_marker("updating planar textures: %sx%s %s", width, height, pixel_format)
Expand Down

0 comments on commit fe90f68

Please sign in to comment.