Changeset 819
- Timestamp:
- Aug 12, 2011, 1:27:58 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/debug/quad.cpp
r818 r819 82 82 if (!data->initialised && !IsDestroying()) 83 83 { 84 #if !defined __CELLOS_LV2__ 84 #if !defined __CELLOS_LV2__ && !defined ANDROID_NDK 85 85 glGenVertexArrays(NUM_ARRAYS, data->array); 86 86 #endif … … 112 112 else if (data->initialised && IsDestroying()) 113 113 { 114 #if !defined __CELLOS_LV2__ 114 #if !defined __CELLOS_LV2__ && !defined ANDROID_NDK 115 115 glDeleteVertexArrays(NUM_ARRAYS, data->array); 116 116 #endif … … 354 354 #endif 355 355 356 #if !defined ANDROID_NDK 356 357 /* 357 358 * Test #7: vertex buffer + per-vertex coloring … … 378 379 Advance(); 379 380 ResetState(); 381 #endif 380 382 381 383 /* … … 385 387 * animated distorted checkerboard. 386 388 */ 389 #if !defined ANDROID_NDK 387 390 GLfloat const vertices2[] = { data->aa.x, data->bb.y, 0.0f, 388 391 data->bb.x, data->bb.y, 0.0f, … … 410 413 Advance(); 411 414 ResetState(); 415 #endif 412 416 413 417 /* … … 417 421 * animated distorted checkerboard. 418 422 */ 419 #if !defined __CELLOS_LV2__ 423 #if !defined __CELLOS_LV2__ && !defined ANDROID_NDK 420 424 if (!data->shader[3]) 421 425 data->shader[3] = Shader::Create( … … 472 476 * animated distorted checkerboard. 473 477 */ 474 #if !defined __CELLOS_LV2__ 478 #if !defined __CELLOS_LV2__ && !defined ANDROID_NDK 475 479 if (!data->shader[4]) 476 480 { … … 548 552 * animated distorted checkerboard. 549 553 */ 550 #if !defined __CELLOS_LV2__ 554 #if !defined __CELLOS_LV2__ && !defined ANDROID_NDK 551 555 if (!data->shader[5]) 552 556 { … … 622 626 { 623 627 /* Reset GL states to something reasonably safe */ 628 #if defined HAVE_GLBEGIN || defined USE_GLEW 624 629 glMatrixMode(GL_PROJECTION); 625 630 glLoadIdentity(); 626 631 glMatrixMode(GL_MODELVIEW); 627 632 glLoadIdentity(); 633 #endif 628 634 629 635 glEnable(GL_TEXTURE_2D); 630 636 glBindTexture(GL_TEXTURE_2D, 0); 637 #if defined HAVE_GLBEGIN || defined USE_GLEW 631 638 glClientActiveTexture(GL_TEXTURE0); 639 #endif 632 640 glDisable(GL_TEXTURE_2D); 633 641
Note: See TracChangeset
for help on using the changeset viewer.