#define __DALI_INTERNAL_GL_IMPLEMENTATION_H__
/*
- * Copyright (c) 2016 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2017 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
#error "OpenGL ES version not specified"
#endif
-#define GL_GLEXT_PROTOTYPES
#if DALI_GLES_VERSION >= 31
#include <GLES3/gl31.h>
#elif DALI_GLES_VERSION >= 30
void InvalidateFramebuffer(GLenum target, GLsizei numAttachments, const GLenum* attachments)
{
#if DALI_GLES_VERSION >= 30
- // if OpenGL ES 2.0 compatibility is need this can be implemented with
- // glDiscardFramebufferEXT
glInvalidateFramebuffer(target,numAttachments,attachments);
+#else
+ mGlExtensions.DiscardFrameBuffer(target, numAttachments, attachments);
#endif // DALI_GLES_VERSION >= 30
}