Merge with git@github.com:zothar/mcedit.git 'master'
This commit is contained in:
commit
343a9e4c70
@ -453,7 +453,7 @@ class CameraViewport(GLViewport):
|
|||||||
GL.glReadBuffer(GL.GL_BACK)
|
GL.glReadBuffer(GL.GL_BACK)
|
||||||
else:
|
else:
|
||||||
GL.glReadBuffer(GL.GL_FRONT)
|
GL.glReadBuffer(GL.GL_FRONT)
|
||||||
except Exception, e:
|
except Exception:
|
||||||
logging.exception('Exception during glReadBuffer')
|
logging.exception('Exception during glReadBuffer')
|
||||||
ws = self.get_root().size
|
ws = self.get_root().size
|
||||||
if center:
|
if center:
|
||||||
@ -3675,7 +3675,7 @@ class EditorToolbar(GLOrtho):
|
|||||||
), dtype="f4"))
|
), dtype="f4"))
|
||||||
|
|
||||||
GL.glDrawArrays(GL.GL_QUADS, 0, 4)
|
GL.glDrawArrays(GL.GL_QUADS, 0, 4)
|
||||||
except Exception, e:
|
except Exception:
|
||||||
logging.exception('Error while drawing toolbar.')
|
logging.exception('Error while drawing toolbar.')
|
||||||
GL.glDisableClientState(GL.GL_TEXTURE_COORD_ARRAY)
|
GL.glDisableClientState(GL.GL_TEXTURE_COORD_ARRAY)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user