diff options
author | numzero <numzer0@yandex.ru> | 2023-03-02 02:41:58 +0300 |
---|---|---|
committer | numzero <numzer0@yandex.ru> | 2023-03-02 02:41:58 +0300 |
commit | d6716ec31b7399517655403d8963b7632bbbf6b3 (patch) | |
tree | 8f91c94464c04e11311f969cf8edf68b378f4d20 | |
parent | 620f4869a173f1906b061fa5a0a4be518c292037 (diff) | |
download | irrlicht-d6716ec31b7399517655403d8963b7632bbbf6b3.tar.xz |
Support GLES2
-rw-r--r-- | source/Irrlicht/COpenGLCoreRenderTarget.h | 12 | ||||
-rw-r--r-- | source/Irrlicht/COpenGLCoreTexture.h | 3 |
2 files changed, 10 insertions, 5 deletions
diff --git a/source/Irrlicht/COpenGLCoreRenderTarget.h b/source/Irrlicht/COpenGLCoreRenderTarget.h index 7dff3c9..f893c17 100644 --- a/source/Irrlicht/COpenGLCoreRenderTarget.h +++ b/source/Irrlicht/COpenGLCoreRenderTarget.h @@ -10,6 +10,14 @@ #include "IRenderTarget.h"
+#ifndef GL_FRAMEBUFFER_INCOMPLETE_FORMATS
+#define GL_FRAMEBUFFER_INCOMPLETE_FORMATS GL_FRAMEBUFFER_INCOMPLETE_FORMATS_EXT
+#endif
+
+#ifndef GL_FRAMEBUFFER_INCOMPLETE_DIMENSIONS
+#define GL_FRAMEBUFFER_INCOMPLETE_DIMENSIONS GL_FRAMEBUFFER_INCOMPLETE_DIMENSIONS_EXT
+#endif
+
namespace irr
{
namespace video
@@ -351,10 +359,10 @@ protected: case GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT:
os::Printer::log("FBO has one or several incomplete image attachments", ELL_ERROR);
break;
- case GL_FRAMEBUFFER_INCOMPLETE_FORMATS_EXT:
+ case GL_FRAMEBUFFER_INCOMPLETE_FORMATS:
os::Printer::log("FBO has one or several image attachments with different internal formats", ELL_ERROR);
break;
- case GL_FRAMEBUFFER_INCOMPLETE_DIMENSIONS_EXT:
+ case GL_FRAMEBUFFER_INCOMPLETE_DIMENSIONS:
os::Printer::log("FBO has one or several image attachments with different dimensions", ELL_ERROR);
break;
case GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT:
diff --git a/source/Irrlicht/COpenGLCoreTexture.h b/source/Irrlicht/COpenGLCoreTexture.h index c19215b..2ad8af1 100644 --- a/source/Irrlicht/COpenGLCoreTexture.h +++ b/source/Irrlicht/COpenGLCoreTexture.h @@ -433,9 +433,6 @@ public: else
{
#ifdef IRR_OPENGL_HAS_glGenerateMipmap
- #if !defined(IRR_COMPILE_GLES2_COMMON)
- glEnable(GL_TEXTURE_2D); // Hack some ATI cards need this glEnable according to https://www.khronos.org/opengl/wiki/Common_Mistakes
- #endif
Driver->irrGlGenerateMipmap(TextureType);
#endif
}
|