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

Replace internal color format parameters on formats supported by GLES2.

This commit is contained in:
Sergey Lipskiy 2017-02-07 09:49:09 +07:00
parent 0c6564f3c1
commit 3f855ffb63

View File

@ -33,7 +33,12 @@ void ContextImpl::init()
// Correct buffer target parameters, since GLES2 knows only GL_FRAMEBUFFER
graphics::bufferTarget::DRAW_FRAMEBUFFER = graphics::bufferTarget::FRAMEBUFFER;
graphics::bufferTarget::READ_FRAMEBUFFER = graphics::bufferTarget::FRAMEBUFFER;
// Replace internal color format parameters on formats supported by GLES2
graphics::internalcolorFormat::RGB8 = graphics::InternalColorFormatParam(GL_RGB);
graphics::internalcolorFormat::RGBA8 = graphics::InternalColorFormatParam(GL_RGBA);
graphics::internalcolorFormat::RGBA4 = graphics::InternalColorFormatParam(GL_RGBA);
graphics::internalcolorFormat::RGB5_A1 = graphics::InternalColorFormatParam(GL_RGBA);
}
if (!m_cachedFunctions)