wer can release compiler data if we want when done with glsl compiling.

SVN revision: 58172
This commit is contained in:
Carsten Haitzler 2011-03-29 09:10:57 +00:00
parent 2d58f21d30
commit 6b4d91830e
3 changed files with 11 additions and 0 deletions

View File

@ -448,6 +448,7 @@ int evas_gl_common_shader_program_init(Evas_GL_Program *p,
Evas_GL_Program_Source *vert,
Evas_GL_Program_Source *frag,
const char *name);
void evas_gl_common_shader_program_init_done(void);
void evas_gl_common_shader_program_shutdown(Evas_GL_Program *p);
void evas_gl_common_rect_draw(Evas_Engine_GL_Context *gc, int x, int y, int w, int h);

View File

@ -733,6 +733,8 @@ evas_gl_common_context_new(void)
glUseProgram(gc->pipe[0].shader.cur_prog);
GLERR(__FUNCTION__, __FILE__, __LINE__, "");
evas_gl_common_shader_program_init_done();
// in shader:
// uniform sampler2D tex[8];
//

View File

@ -511,6 +511,14 @@ evas_gl_common_shader_program_init(Evas_GL_Program *p,
return 1;
}
void
evas_gl_common_shader_program_init_done(void)
{
#if defined (GLES_VARIETY_S3C6410) || defined (GLES_VARIETY_SGX)
glReleaseShaderCompiler();
#endif
}
void
evas_gl_common_shader_program_shutdown(Evas_GL_Program *p)
{