evas - gl engine - pipe renderer - disabling of unused arrays for lines
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>
Mon, 9 Feb 2015 17:28:36 +0000 (02:28 +0900)
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>
Mon, 9 Feb 2015 17:30:10 +0000 (02:30 +0900)
@fix - this fixes disabling of unused texa and texsam arays when line
drawing - spotted in code review and bug hunting of another bug.

src/modules/evas/engines/gl_common/evas_gl_context.c

index 4584e504db217ff6e0d0a18bbf042c9b84545f87..4a06a5609af0922691aa8dd8c80c86616fc48afa 100644 (file)
@@ -3277,6 +3277,10 @@ shader_array_flush(Evas_Engine_GL_Context *gc)
              GLERR(__FUNCTION__, __FILE__, __LINE__, "");
              glDisableVertexAttribArray(SHAD_TEXUV3);
              GLERR(__FUNCTION__, __FILE__, __LINE__, "");
+             glDisableVertexAttribArray(SHAD_TEXA);
+             GLERR(__FUNCTION__, __FILE__, __LINE__, "");
+             glDisableVertexAttribArray(SHAD_TEXSAM);
+             GLERR(__FUNCTION__, __FILE__, __LINE__, "");
              glDisableVertexAttribArray(SHAD_TEXM);
              GLERR(__FUNCTION__, __FILE__, __LINE__, "");
              glDrawArrays(GL_LINES, 0, gc->pipe[i].array.num);