Change-Id: I3f446aa2adfb04d9d5ca5807d5c587646beb1301
Signed-off-by: Youri Sdobnikov <i.sdobnikov@samsung.com>
{
pShaderProgram->__program = __pGlContext->BuildShaderProgram(pShaderProgram->__vertexShader, pShaderProgram->__fragmentShader);
- __pGlContext->GetShaderProgramInfo(pShaderProgram);
+ if (pShaderProgram->__program != 0)
+ {
+ __pGlContext->GetShaderProgramInfo(pShaderProgram);
+ }
}
void
_GlContext::GetShaderProgramInfo(_ShaderProgramImpl* pShaderProgram)
{
// Make custom uniform table
- int numUniforms, length, size;
+ int numUniforms = 0;
+ int length = 0;
+ int size = 0;
char name[30]; // TODO: check array size
GLenum type;