mirror of
https://github.com/projectM-visualizer/projectm.git
synced 2026-02-05 07:55:44 +00:00
Use glDrawBuffers instead of glDrawBuffer with GLES.
This commit is contained in:
committed by
Kai Blaschke
parent
1c93302b7d
commit
b7572ea936
@ -146,7 +146,14 @@ void MilkdropPreset::RenderFrame(const libprojectM::Audio::FrameAudioData& audio
|
||||
m_framebuffer.BindRead(m_previousFrameBuffer);
|
||||
glBindFramebuffer(GL_DRAW_FRAMEBUFFER, 0);
|
||||
glReadBuffer(GL_COLOR_ATTACHMENT0);
|
||||
#if USE_GLES
|
||||
{
|
||||
GLenum drawBuffers[] = { GL_COLOR_ATTACHMENT0 };
|
||||
glDrawBuffers(1, drawBuffers);
|
||||
}
|
||||
#else
|
||||
glDrawBuffer(GL_COLOR_ATTACHMENT0);
|
||||
#endif
|
||||
glBlitFramebuffer(0, 0, renderContext.viewportSizeX, renderContext.viewportSizeY,
|
||||
0, 0, renderContext.viewportSizeX, renderContext.viewportSizeY,
|
||||
GL_COLOR_BUFFER_BIT, GL_NEAREST);
|
||||
|
||||
Reference in New Issue
Block a user