mirror of
https://github.com/blawar/GLideN64.git
synced 2024-07-02 09:03:37 +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,
|
||||
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());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -3,6 +3,8 @@
|
|||
#include "opengl_Utils.h"
|
||||
#include "opengl_GLInfo.h"
|
||||
#include <regex>
|
||||
#include <Graphics/Parameters.h>
|
||||
|
||||
#ifdef EGL
|
||||
#include <EGL/egl.h>
|
||||
#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) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user