this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Fixed GLES rendering due to skipped last_use_texturing setting.

+4 -4
+4 -4
SDL_gpu/GL_common/SDL_gpu_GL_common.inl
··· 585 585 586 586 static void applyTexturing(GPU_Renderer* renderer) 587 587 { 588 - #ifndef SDL_GPU_SKIP_ENABLE_TEXTURE_2D 589 588 GPU_Context* context = renderer->current_context_target->context; 590 589 if(context->use_texturing != ((GPU_CONTEXT_DATA*)context->data)->last_use_texturing) 591 590 { 592 591 ((GPU_CONTEXT_DATA*)context->data)->last_use_texturing = context->use_texturing; 592 + #ifndef SDL_GPU_SKIP_ENABLE_TEXTURE_2D 593 593 if(context->use_texturing) 594 594 glEnable(GL_TEXTURE_2D); 595 595 else 596 596 glDisable(GL_TEXTURE_2D); 597 + #endif 597 598 } 598 - #endif 599 599 } 600 600 601 601 static void changeTexturing(GPU_Renderer* renderer, Uint8 enable) 602 602 { 603 - #ifndef SDL_GPU_SKIP_ENABLE_TEXTURE_2D 604 603 GPU_Context* context = renderer->current_context_target->context; 605 604 if(enable != ((GPU_CONTEXT_DATA*)context->data)->last_use_texturing) 606 605 { 607 606 renderer->impl->FlushBlitBuffer(renderer); 608 607 609 608 ((GPU_CONTEXT_DATA*)context->data)->last_use_texturing = enable; 609 + #ifndef SDL_GPU_SKIP_ENABLE_TEXTURE_2D 610 610 if(enable) 611 611 glEnable(GL_TEXTURE_2D); 612 612 else 613 613 glDisable(GL_TEXTURE_2D); 614 + #endif 614 615 } 615 - #endif 616 616 } 617 617 618 618 static void enableTexturing(GPU_Renderer* renderer)