Fixed possible uninitialized variable in gles renderer

This commit is contained in:
Deve 2017-08-13 01:04:19 +02:00
parent cf868df93f
commit fd4ab9d88f

View File

@ -93,7 +93,7 @@ COGLES2MaterialRenderer::~COGLES2MaterialRenderer()
if (Program)
{
GLuint shaders[8];
GLint count;
GLint count = 0;
glGetAttachedShaders(Program, 8, &count, shaders);
count=core::min_(count,8);