@@ -44,7 +44,6 @@ @implementation CCConfiguration
4444
4545@synthesize maxTextureSize = _maxTextureSize, maxTextureUnits=_maxTextureUnits;
4646@synthesize supportsPVRTC = _supportsPVRTC;
47- @synthesize supportsNPOT = _supportsNPOT;
4847@synthesize supportsBGRA8888 = _supportsBGRA8888;
4948@synthesize supportsDiscardFramebuffer = _supportsDiscardFramebuffer;
5049@synthesize supportsShareableVAO = _supportsShareableVAO;
@@ -182,12 +181,6 @@ -(void) getOpenGLvariables
182181 glGetIntegerv (GL_MAX_TEXTURE_SIZE, &_maxTextureSize);
183182 glGetIntegerv (GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS, &_maxTextureUnits );
184183
185- #ifdef __CC_PLATFORM_IOS
186- _supportsNPOT = YES ;
187- #elif defined(__CC_PLATFORM_MAC)
188- _supportsNPOT = [self checkForGLExtension: @" GL_ARB_texture_non_power_of_two" ];
189- #endif
190-
191184 _supportsPVRTC = [self checkForGLExtension: @" GL_IMG_texture_compression_pvrtc" ];
192185
193186 // It seems that somewhere between firmware iOS 3.0 and 4.2 Apple renamed
@@ -222,14 +215,6 @@ -(GLint) maxTextureUnits
222215 return _maxTextureUnits;
223216}
224217
225- -(BOOL ) supportsNPOT
226- {
227- if ( ! _openGLInitialized )
228- [self getOpenGLvariables ];
229-
230- return _supportsNPOT;
231- }
232-
233218-(BOOL ) supportsPVRTC
234219{
235220 if ( ! _openGLInitialized )
@@ -308,7 +293,6 @@ -(void) dumpInfo
308293 printf (" cocos2d: GL_MAX_SAMPLES: %d \n " , _maxSamplesAllowed);
309294 printf (" cocos2d: GL supports PVRTC: %s \n " , (_supportsPVRTC ? " YES" : " NO" ) );
310295 printf (" cocos2d: GL supports BGRA8888 textures: %s \n " , (_supportsBGRA8888 ? " YES" : " NO" ) );
311- printf (" cocos2d: GL supports NPOT textures: %s \n " , (_supportsNPOT ? " YES" : " NO" ) );
312296 printf (" cocos2d: GL supports discard_framebuffer: %s \n " , (_supportsDiscardFramebuffer ? " YES" : " NO" ) );
313297 printf (" cocos2d: GL supports shareable VAO: %s \n " , (_supportsShareableVAO ? " YES" : " NO" ) );
314298
0 commit comments