@@ -95,11 +95,11 @@ cpdef int gl_has_capability(int cap):
95
95
return value
96
96
97
97
# ok, never been initialized, do it now.
98
- if cap == GLCAP_BGRA :
98
+ if cap == c_GLCAP_BGRA :
99
99
msg = ' BGRA texture support'
100
100
value = gl_has_extension(' EXT_bgra' )
101
101
102
- elif cap == GLCAP_NPOT :
102
+ elif cap == c_GLCAP_NPOT :
103
103
msg = ' NPOT texture support'
104
104
value = gl_has_extension(' ARB_texture_non_power_of_two' )
105
105
if not value:
@@ -108,7 +108,7 @@ cpdef int gl_has_capability(int cap):
108
108
# motorola droid don't have OES_ but IMG_
109
109
value = gl_has_extension(' IMG_texture_npot' )
110
110
111
- elif cap == GLCAP_S3TC :
111
+ elif cap == c_GLCAP_S3TC :
112
112
# S3TC support DXT1, DXT3 and DXT5
113
113
msg = ' S3TC texture support'
114
114
value = gl_has_extension(' S3_s3tc' )
@@ -117,10 +117,10 @@ cpdef int gl_has_capability(int cap):
117
117
if not value:
118
118
value = gl_has_extension(' OES_texture_compression_s3tc' )
119
119
120
- elif cap == GLCAP_DXT1 :
120
+ elif cap == c_GLCAP_DXT1 :
121
121
# DXT1 is included inside S3TC, but not the inverse.
122
122
msg = ' DXT1 texture support'
123
- value = gl_has_capability(GLCAP_S3TC )
123
+ value = gl_has_capability(c_GLCAP_S3TC )
124
124
if not value:
125
125
value = gl_has_extension(' EXT_texture_compression_dxt1' )
126
126
@@ -164,11 +164,11 @@ cpdef int gl_has_texture_native_format(str fmt):
164
164
if fmt in (' rgb' , ' rgba' , ' luminance' , ' luminance_alpha' ):
165
165
return 1
166
166
if fmt in (' bgr' , ' bgra' ):
167
- return gl_has_capability(GLCAP_BGRA )
167
+ return gl_has_capability(c_GLCAP_BGRA )
168
168
if fmt == ' s3tc_dxt1' :
169
- return gl_has_capability(GLCAP_DXT1 )
169
+ return gl_has_capability(c_GLCAP_DXT1 )
170
170
if fmt.startswith(' s3tc_dxt' ):
171
- return gl_has_capability(GLCAP_S3TC )
171
+ return gl_has_capability(c_GLCAP_S3TC )
172
172
return 0
173
173
174
174
0 commit comments