lbry-android-sdk/p4a/pythonforandroid/recipes/vispy/remove_ati_check.patch
Akinwale Ariwodola 744cfaebc2 Initial commit
2017-08-13 02:24:00 +01:00

34 lines
1.4 KiB
Diff

diff --git a/vispy/gloo/glir.py b/vispy/gloo/glir.py
index 67419b5..341c13d 100644
--- a/vispy/gloo/glir.py
+++ b/vispy/gloo/glir.py
@@ -878,19 +878,19 @@ class GlirBuffer(GlirObject):
self.activate()
nbytes = data.nbytes
- # Determine whether to check errors to try handling the ATI bug
- check_ati_bug = ((not self._bufferSubDataOk) and
- (gl.current_backend is gl.gl2) and
- sys.platform.startswith('win'))
-
- # flush any pending errors
- if check_ati_bug:
- gl.check_error('periodic check')
+ # # Determine whether to check errors to try handling the ATI bug
+ # check_ati_bug = ((not self._bufferSubDataOk) and
+ # (gl.current_backend is gl.gl2) and
+ # sys.platform.startswith('win'))
+
+ # # flush any pending errors
+ # if check_ati_bug:
+ # gl.check_error('periodic check')
try:
gl.glBufferSubData(self._target, offset, data)
- if check_ati_bug:
- gl.check_error('glBufferSubData')
+ # if check_ati_bug:
+ # gl.check_error('glBufferSubData')
self._bufferSubDataOk = True # glBufferSubData seems to work
except Exception:
# This might be due to a driver error (seen on ATI), issue #64.