Skip to content

Commit

Permalink
[gui.gl] improve compatibility
Browse files Browse the repository at this point in the history
This change fixed redering of the ColorBarWidget under Windows 8.1.
  • Loading branch information
sdrave committed Jan 20, 2015
1 parent 8882105 commit bf41ac9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/pymor/gui/gl.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,8 @@ def set(self, U=None, vmin=None, vmax=None):
self.setMinimumSize(max(self.vmin_width, self.vmax_width) + 20, 300)
self.update()

def paintGL(self):
def paintEvent(self, event):
self.makeCurrent()
gl.glClear(gl.GL_COLOR_BUFFER_BIT | gl.GL_DEPTH_BUFFER_BIT)
gl.glUseProgram(self.shaders_program)

Expand Down

0 comments on commit bf41ac9

Please sign in to comment.