File tree Expand file tree Collapse file tree 1 file changed +34
-0
lines changed
pythonforandroid/recipes/vispy Expand file tree Collapse file tree 1 file changed +34
-0
lines changed Original file line number Diff line number Diff line change
1
+ diff --git a/vispy/gloo/glir.py b/vispy/gloo/glir.py
2
+ index 67419b5..341c13d 100644
3
+ --- a/vispy/gloo/glir.py
4
+ +++ b/vispy/gloo/glir.py
5
+ @@ -878,19 +878,19 @@ class GlirBuffer(GlirObject):
6
+ self.activate()
7
+ nbytes = data.nbytes
8
+
9
+ - # Determine whether to check errors to try handling the ATI bug
10
+ - check_ati_bug = ((not self._bufferSubDataOk) and
11
+ - (gl.current_backend is gl.gl2) and
12
+ - sys.platform.startswith('win'))
13
+ -
14
+ - # flush any pending errors
15
+ - if check_ati_bug:
16
+ - gl.check_error('periodic check')
17
+ + # # Determine whether to check errors to try handling the ATI bug
18
+ + # check_ati_bug = ((not self._bufferSubDataOk) and
19
+ + # (gl.current_backend is gl.gl2) and
20
+ + # sys.platform.startswith('win'))
21
+ +
22
+ + # # flush any pending errors
23
+ + # if check_ati_bug:
24
+ + # gl.check_error('periodic check')
25
+
26
+ try:
27
+ gl.glBufferSubData(self._target, offset, data)
28
+ - if check_ati_bug:
29
+ - gl.check_error('glBufferSubData')
30
+ + # if check_ati_bug:
31
+ + # gl.check_error('glBufferSubData')
32
+ self._bufferSubDataOk = True # glBufferSubData seems to work
33
+ except Exception:
34
+ # This might be due to a driver error (seen on ATI), issue #64.
You can’t perform that action at this time.
0 commit comments