Initialize();
}
-#ifdef PFNGLDISCARDFRAMEBUFFEREXTPROC
+#ifdef GL_EXT_discard_framebuffer
if( mGlDiscardFramebuffer )
{
mGlDiscardFramebuffer(target, numAttachments, attachments);
Initialize();
}
-#ifdef PFNGLGETPROGRAMBINARYOESPROC
+#ifdef GL_OES_get_program_binary
if (mGlGetProgramBinaryOES)
{
mGlGetProgramBinaryOES(program, bufSize, length, binaryFormat, binary);
Initialize();
}
-#ifdef PFNGLGETPROGRAMBINARYOESPROC
+#ifdef GL_OES_get_program_binary
if (mGlProgramBinaryOES)
{
mGlProgramBinaryOES(program, binaryFormat, binary, length);
{
mInitialized = true;
-#ifdef PFNGLDISCARDFRAMEBUFFEREXTPROC
+#ifdef GL_EXT_discard_framebuffer
mGlDiscardFramebuffer = (PFNGLDISCARDFRAMEBUFFEREXTPROC) eglGetProcAddress("glDiscardFramebufferEXT");
#endif
-#ifdef PFNGLGETPROGRAMBINARYOESPROC
+#ifdef GL_OES_get_program_binary
mGlGetProgramBinaryOES = (PFNGLGETPROGRAMBINARYOESPROC) eglGetProcAddress("glGetProgramBinaryOES");
mGlProgramBinaryOES = (PFNGLPROGRAMBINARYOESPROC) eglGetProcAddress("glProgramBinaryOES");
#endif
-
}
#endif // DALI_GLES_VERSION < 30
#if DALI_GLES_VERSION < 30
-#ifdef PFNGLDISCARDFRAMEBUFFEREXTPROC
+#ifdef GL_EXT_discard_framebuffer
PFNGLDISCARDFRAMEBUFFEREXTPROC mGlDiscardFramebuffer;
#endif
-
-#ifdef PFNGLGETPROGRAMBINARYOESPROC
+#ifdef GL_OES_get_program_binary
PFNGLGETPROGRAMBINARYOESPROC mGlGetProgramBinaryOES;
PFNGLPROGRAMBINARYOESPROC mGlProgramBinaryOES;
#endif
// if OpenGL ES 2.0 compatibility is need this can be implemented with
// glGetProgramBinaryOES
glGetProgramBinary(program,bufSize,length,binaryFormat,binary);
+#else
+ mGlExtensions.GetProgramBinaryOES(program, bufSize, length, binaryFormat, binary);
#endif // DALI_GLES_VERSION >= 30
}
// if OpenGL ES 2.0 compatibility is need this can be implemented with
// glProgramBinaryOES
glProgramBinary(program,binaryFormat,binary,length);
+#else
+ mGlExtensions.ProgramBinaryOES(program, binaryFormat, binary, length);
#endif // DALI_GLES_VERSION >= 30
}