diff --git a/src/Graphics/OpenGLContext/opengl_ColorBufferReaderWithEGLImage.cpp b/src/Graphics/OpenGLContext/opengl_ColorBufferReaderWithEGLImage.cpp index 83a4d703..c248ed66 100644 --- a/src/Graphics/OpenGLContext/opengl_ColorBufferReaderWithEGLImage.cpp +++ b/src/Graphics/OpenGLContext/opengl_ColorBufferReaderWithEGLImage.cpp @@ -36,9 +36,9 @@ void ColorBufferReaderWithEGLImage::_initBuffers() m_image = eglCreateImageKHR(eglGetDisplay(EGL_DEFAULT_DISPLAY), EGL_NO_CONTEXT, EGL_NATIVE_BUFFER_ANDROID, m_hardwareBuffer.getClientBuffer(), eglImgAttrs); - m_bindTexture->bind(graphics::Parameter(0), graphics::Parameter(GL_TEXTURE_EXTERNAL_OES), m_pTexture->name); - glEGLImageTargetTexture2DOES(GL_TEXTURE_EXTERNAL_OES, m_image); - m_bindTexture->bind(graphics::Parameter(0), graphics::Parameter(GL_TEXTURE_EXTERNAL_OES), ObjectHandle()); + m_bindTexture->bind(graphics::Parameter(0), textureTarget::TEXTURE_EXTERNAL, m_pTexture->name); + glEGLImageTargetTexture2DOES(GLenum(textureTarget::TEXTURE_EXTERNAL), m_image); + m_bindTexture->bind(graphics::Parameter(0), textureTarget::TEXTURE_EXTERNAL, ObjectHandle()); } } diff --git a/src/Graphics/OpenGLContext/opengl_GLInfo.cpp b/src/Graphics/OpenGLContext/opengl_GLInfo.cpp index e7f8187c..877d6df6 100644 --- a/src/Graphics/OpenGLContext/opengl_GLInfo.cpp +++ b/src/Graphics/OpenGLContext/opengl_GLInfo.cpp @@ -3,6 +3,8 @@ #include "opengl_Utils.h" #include "opengl_GLInfo.h" #include +#include + #ifdef EGL #include #endif @@ -168,6 +170,10 @@ void GLInfo::init() { (renderer != Renderer::PowerVR); #endif + if (renderer == Renderer::Intel) { + graphics::textureTarget::TEXTURE_EXTERNAL = GL_TEXTURE_2D; + } + eglImageFramebuffer = eglImage && !isGLES2; if (config.frameBufferEmulation.N64DepthCompare != Config::dcDisable) {