Skip to content

Commit 10cfa6c

Browse files
committed
Adder ATI check removal patch
1 parent 0420b09 commit 10cfa6c

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
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.

0 commit comments

Comments
 (0)