dont need these with shaders.

SVN revision: 46267
This commit is contained in:
Carsten Haitzler 2010-02-18 07:21:17 +00:00
parent c7695857f7
commit 25f169fc21
1 changed files with 10 additions and 10 deletions

View File

@ -1076,16 +1076,16 @@ shader_array_flush(Evas_GL_Context *gc)
if (gc->shader.cur_tex != gc->shader.current.cur_tex)
{
if (gc->shader.cur_tex)
{
glEnable(GL_TEXTURE_2D);
GLERR(__FUNCTION__, __FILE__, __LINE__, "");
}
else
{
glDisable(GL_TEXTURE_2D);
GLERR(__FUNCTION__, __FILE__, __LINE__, "");
}
// if (gc->shader.cur_tex)
// {
// glEnable(GL_TEXTURE_2D);
// GLERR(__FUNCTION__, __FILE__, __LINE__, "");
// }
// else
// {
// glDisable(GL_TEXTURE_2D);
// GLERR(__FUNCTION__, __FILE__, __LINE__, "");
// }
glActiveTexture(GL_TEXTURE0);
GLERR(__FUNCTION__, __FILE__, __LINE__, "");
glBindTexture(GL_TEXTURE_2D, gc->shader.cur_tex);