Changeset 1083
- Timestamp:
- Nov 21, 2011, 1:49:50 AM (12 years ago)
- Location:
- trunk/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/debug/quad.cpp
r1082 r1083 163 163 164 164 /* Checkerboard texture */ 165 #if !defined HAVE_GLES_2X 165 166 glEnable(GL_TEXTURE_2D); 167 #endif 166 168 glBindTexture(GL_TEXTURE_2D, data->texture[0]); 167 169 for (int j = 0; j < TEX_SIZE; j++) … … 304 306 */ 305 307 #if defined HAVE_GLBEGIN || defined USE_GLEW 308 #if !defined HAVE_GLES_2X 306 309 glEnable(GL_TEXTURE_2D); 310 #endif 307 311 glBindTexture(GL_TEXTURE_2D, data->texture[0]); 308 312 glColor3f(1.0f, 1.0f, 1.0f); … … 328 332 glVertex3f(data->aa.x, data->bb.y, 0.0f); 329 333 glEnd(); 334 #if !defined HAVE_GLES_2X 330 335 glDisable(GL_TEXTURE_2D); 336 #endif 331 337 #endif 332 338 … … 1078 1084 #endif 1079 1085 1086 #if !defined HAVE_GLES_2X 1080 1087 glEnable(GL_TEXTURE_2D); 1088 #endif 1081 1089 glBindTexture(GL_TEXTURE_2D, 0); 1082 1090 #if defined HAVE_GLBEGIN || defined USE_GLEW || defined __CELLOS_LV2__ … … 1086 1094 glTexEnvi(GL_POINT_SPRITE, GL_COORD_REPLACE, GL_FALSE); 1087 1095 #endif 1096 #if !defined HAVE_GLES_2X 1088 1097 glDisable(GL_TEXTURE_2D); 1098 #endif 1089 1099 1090 1100 glDisable(GL_BLEND); -
trunk/src/scene.cpp
r1044 r1083 138 138 #if !defined __CELLOS_LV2__ 139 139 stdshader = Shader::Create( 140 #if !defined HAVE_GLES_2X 140 141 "#version 130\n" 142 #endif 141 143 "\n" 142 144 #if defined HAVE_GLES_2X … … 163 165 "}\n", 164 166 167 #if !defined HAVE_GLES_2X 165 168 "#version 130\n" 169 #else 170 "precision mediump float;\n" 171 #endif 166 172 "\n" 167 173 "uniform sampler2D in_Texture;\n" … … 318 324 #endif 319 325 326 #if !defined HAVE_GLES_2X 320 327 glEnable(GL_TEXTURE_2D); 328 #endif 321 329 glEnable(GL_DEPTH_TEST); 322 330 glDepthFunc(GL_LEQUAL); … … 406 414 data->ntiles = 0; 407 415 416 #if !defined HAVE_GLES_2X 408 417 glDisable(GL_TEXTURE_2D); 418 #endif 409 419 glDisable(GL_DEPTH_TEST); 410 420 #if defined HAVE_GL_2X && !defined __APPLE__
Note: See TracChangeset
for help on using the changeset viewer.