forked from enlightenment/efl
wer can release compiler data if we want when done with glsl compiling.
SVN revision: 58172
This commit is contained in:
parent
2d58f21d30
commit
6b4d91830e
|
@ -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);
|
||||
|
|
|
@ -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];
|
||||
//
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue