mirror of
https://github.com/projectM-visualizer/projectm.git
synced 2026-02-05 02:55:41 +00:00
Fix two Emscripten/GLES compile issues.
This commit is contained in:
committed by
Kai Blaschke
parent
b07163dd51
commit
a294b8a374
@ -201,7 +201,11 @@ void Framebuffer::MaskDrawBuffer(int bufferIndex, bool masked)
|
||||
{
|
||||
// Invert the flag, as "true" means the color channel *will* be written.
|
||||
auto glMasked = static_cast<GLboolean>(!masked);
|
||||
#if USE_GLES
|
||||
glColorMask(glMasked, glMasked, glMasked, glMasked);
|
||||
#else
|
||||
glColorMaski(bufferIndex, glMasked, glMasked, glMasked, glMasked);
|
||||
#endif
|
||||
}
|
||||
|
||||
void Framebuffer::UpdateDrawBuffers(int framebufferIndex)
|
||||
|
||||
@ -1,5 +1,10 @@
|
||||
#include "TextureAttachment.hpp"
|
||||
|
||||
// OpenGL ES might not define this constant in its headers, e.g. in the iOS and Emscripten SDKs.
|
||||
#ifndef GL_STENCIL_INDEX
|
||||
#define GL_STENCIL_INDEX 0x1901
|
||||
#endif
|
||||
|
||||
TextureAttachment::TextureAttachment(AttachmentType attachment, int width, int height)
|
||||
: m_attachmentType(attachment)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user