Skip to content

Commit

Permalink
#1111: only enable shader after init
Browse files Browse the repository at this point in the history
git-svn-id: https://xpra.org/svn/Xpra/trunk@14405 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Nov 12, 2016
1 parent 8054044 commit d6d93e3
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 @@ -432,7 +432,6 @@ def gl_init(self):
if self.textures is None:
self.gl_init_textures()

glEnable(GL_FRAGMENT_PROGRAM_ARB)
# Define empty tmp FBO
glBindTexture(GL_TEXTURE_RECTANGLE_ARB, self.textures[TEX_TMP_FBO])
set_texture_level()
Expand All @@ -456,6 +455,7 @@ def gl_init(self):

# Bind program 0 for YUV painting by default
glBindProgramARB(GL_FRAGMENT_PROGRAM_ARB, self.shaders[YUV2RGB_SHADER])
glEnable(GL_FRAGMENT_PROGRAM_ARB)
self.gl_setup = True

def close(self):
Expand Down

0 comments on commit d6d93e3

Please sign in to comment.