mirror of
https://github.com/blawar/GLideN64.git
synced 2024-07-04 10:03:36 +00:00
Fix issues with EGL image with Intel GPUs
This commit is contained in:
parent
73f891b055
commit
c7144d0775
|
@ -36,9 +36,9 @@ void ColorBufferReaderWithEGLImage::_initBuffers()
|
||||||
m_image = eglCreateImageKHR(eglGetDisplay(EGL_DEFAULT_DISPLAY), EGL_NO_CONTEXT,
|
m_image = eglCreateImageKHR(eglGetDisplay(EGL_DEFAULT_DISPLAY), EGL_NO_CONTEXT,
|
||||||
EGL_NATIVE_BUFFER_ANDROID, m_hardwareBuffer.getClientBuffer(), eglImgAttrs);
|
EGL_NATIVE_BUFFER_ANDROID, m_hardwareBuffer.getClientBuffer(), eglImgAttrs);
|
||||||
|
|
||||||
m_bindTexture->bind(graphics::Parameter(0), graphics::Parameter(GL_TEXTURE_EXTERNAL_OES), m_pTexture->name);
|
m_bindTexture->bind(graphics::Parameter(0), textureTarget::TEXTURE_EXTERNAL, m_pTexture->name);
|
||||||
glEGLImageTargetTexture2DOES(GL_TEXTURE_EXTERNAL_OES, m_image);
|
glEGLImageTargetTexture2DOES(GLenum(textureTarget::TEXTURE_EXTERNAL), m_image);
|
||||||
m_bindTexture->bind(graphics::Parameter(0), graphics::Parameter(GL_TEXTURE_EXTERNAL_OES), ObjectHandle());
|
m_bindTexture->bind(graphics::Parameter(0), textureTarget::TEXTURE_EXTERNAL, ObjectHandle());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -3,6 +3,8 @@
|
||||||
#include "opengl_Utils.h"
|
#include "opengl_Utils.h"
|
||||||
#include "opengl_GLInfo.h"
|
#include "opengl_GLInfo.h"
|
||||||
#include <regex>
|
#include <regex>
|
||||||
|
#include <Graphics/Parameters.h>
|
||||||
|
|
||||||
#ifdef EGL
|
#ifdef EGL
|
||||||
#include <EGL/egl.h>
|
#include <EGL/egl.h>
|
||||||
#endif
|
#endif
|
||||||
|
@ -168,6 +170,10 @@ void GLInfo::init() {
|
||||||
(renderer != Renderer::PowerVR);
|
(renderer != Renderer::PowerVR);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
if (renderer == Renderer::Intel) {
|
||||||
|
graphics::textureTarget::TEXTURE_EXTERNAL = GL_TEXTURE_2D;
|
||||||
|
}
|
||||||
|
|
||||||
eglImageFramebuffer = eglImage && !isGLES2;
|
eglImageFramebuffer = eglImage && !isGLES2;
|
||||||
|
|
||||||
if (config.frameBufferEmulation.N64DepthCompare != Config::dcDisable) {
|
if (config.frameBufferEmulation.N64DepthCompare != Config::dcDisable) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user