1
0
mirror of https://github.com/blawar/GLideN64.git synced 2024-07-04 10:03:36 +00:00

Correct buffer target parameters for GLES2

This commit is contained in:
Sergey Lipskiy 2017-02-03 17:37:54 +07:00
parent c07231a825
commit 355c261dc7

View File

@ -28,6 +28,12 @@ void ContextImpl::init()
{
m_glInfo.init();
if (m_glInfo.isGLES2) {
// Correct buffer target parameters, since GLES2 knows only GL_FRAMEBUFFER
graphics::bufferTarget::DRAW_FRAMEBUFFER = graphics::bufferTarget::FRAMEBUFFER;
graphics::bufferTarget::READ_FRAMEBUFFER = graphics::bufferTarget::FRAMEBUFFER;
}
if (!m_cachedFunctions)
m_cachedFunctions.reset(new CachedFunctions(m_glInfo));