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:
parent
c07231a825
commit
355c261dc7
|
@ -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));
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user