1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-12 16:15:20 +02:00

Fix invalid glDrawBuffer call on GLES

closes #14445
This commit is contained in:
sfan5
2024-05-11 11:36:47 +02:00
parent 0889048cb5
commit 472742266b

View File

@@ -138,7 +138,8 @@ public:
inline void irrGlDrawBuffer(GLenum mode)
{
GL.DrawBuffer(mode);
// GLES only has DrawBuffers, so use that
GL.DrawBuffers(1, &mode);
}
inline void irrGlDrawBuffers(GLsizei n, const GLenum *bufs)