Skip to content

Commit

Permalink
#2425 ignore buggy drivers that fail to glClear(GL_COLOR_BUFFER_BIT)
Browse files Browse the repository at this point in the history
git-svn-id: https://xpra.org/svn/Xpra/trunk@23971 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Sep 26, 2019
1 parent 23c91d9 commit 7de4929
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/xpra/client/gl/gl_window_backing_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -528,7 +528,10 @@ def init_fbo(self, texture_index, fbo, w, h, mag_filter):
glTexImage2D(target, 0, self.internal_format, w, h, 0, self.texture_pixel_format, GL_UNSIGNED_BYTE, None)
glBindFramebuffer(GL_FRAMEBUFFER, fbo)
glFramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, target, self.textures[texture_index], 0)
glClear(GL_COLOR_BUFFER_BIT)
try:
glClear(GL_COLOR_BUFFER_BIT)
except:
log("ignoring glClear(GL_COLOR_BUFFER_BIT) error, buggy driver?", exc_info=True)


def close_gl_config(self):
Expand Down

0 comments on commit 7de4929

Please sign in to comment.