Ticket #2996: 0011-GLES-doesn-t-have-glDisable-GL_TEXTURE_2D.patch

File 0011-GLES-doesn-t-have-glDisable-GL_TEXTURE_2D.patch, 709 bytes (added by BogDan, 9 years ago)
  • source/lib/res/graphics/ogl_tex.cpp

    From e52da1e73d254704bcd55c996c869768cccdc657 Mon Sep 17 00:00:00 2001
    From: BogDan Vatra <bogdan@kde.org>
    Date: Mon, 29 Dec 2014 20:52:26 +0200
    Subject: [PATCH 11/11] GLES doesn't have glDisable(GL_TEXTURE_2D)
    
    ---
     source/lib/res/graphics/ogl_tex.cpp | 2 ++
     1 file changed, 2 insertions(+)
    
    diff --git a/source/lib/res/graphics/ogl_tex.cpp b/source/lib/res/graphics/ogl_tex.cpp
    index f1a7d40..0087ee0 100644
    a b Status ogl_tex_bind(Handle ht, size_t unit)  
    10731073    // special case: disable texturing
    10741074    if(ht == 0)
    10751075    {
     1076#if !CONFIG2_GLES
    10761077        glDisable(GL_TEXTURE_2D);
     1078#endif
    10771079        return INFO::OK;
    10781080    }
    10791081