Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix: don't use depth testing when no depth buffer will be used.

  • Loading branch information...
commit 936c24f73355a9e6cb7ed09ef1626bd6e915baf0 1 parent 557b560
@lhunath authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  cocos2d/CCDirector.m
2  cocos2d/CCDirector.m
@@ -203,7 +203,7 @@ -(void) setGLDefaultValues
NSAssert( view_, @"view_ must be initialized");
[self setAlphaBlending: YES];
- [self setDepthTest: YES];
+ [self setDepthTest: view_.depthFormat];
[self setProjection: projection_];
// set other opengl default values
Please sign in to comment.
Something went wrong with that request. Please try again.