projects
/
platform
/
core
/
uifw
/
dali-adaptor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Ensure we discard unneeded renderbuffers in OpenGL ES 2.0 as well
[platform/core/uifw/dali-adaptor.git]
/
adaptors
/
common
/
gl
/
gl-implementation.h
diff --git
a/adaptors/common/gl/gl-implementation.h
b/adaptors/common/gl/gl-implementation.h
index
452367e
..
36a08cc
100644
(file)
--- a/
adaptors/common/gl/gl-implementation.h
+++ b/
adaptors/common/gl/gl-implementation.h
@@
-2,7
+2,7
@@
#define __DALI_INTERNAL_GL_IMPLEMENTATION_H__
/*
#define __DALI_INTERNAL_GL_IMPLEMENTATION_H__
/*
- * Copyright (c) 201
6
Samsung Electronics Co., Ltd.
+ * Copyright (c) 201
7
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.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@
-1509,9
+1509,9
@@
public:
void InvalidateFramebuffer(GLenum target, GLsizei numAttachments, const GLenum* attachments)
{
#if 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);
glInvalidateFramebuffer(target,numAttachments,attachments);
+#else
+ mGlExtensions.DiscardFrameBuffer(target, numAttachments, attachments);
#endif // DALI_GLES_VERSION >= 30
}
#endif // DALI_GLES_VERSION >= 30
}