From 39916024f4878739a64c785cdaa16cdccc171e7f Mon Sep 17 00:00:00 2001 From: Erik Kundiman Date: Wed, 6 Sep 2023 12:21:49 +0800 Subject: glDrawBuffers instead of glDrawBuffer since the latter is less portable. I'm guessing 1st arg is 0 since the condition is when mTex is empty. --- indra/llrender/llrendertarget.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'indra') diff --git a/indra/llrender/llrendertarget.cpp b/indra/llrender/llrendertarget.cpp index 005a7cfa97..90f9253a75 100644 --- a/indra/llrender/llrendertarget.cpp +++ b/indra/llrender/llrendertarget.cpp @@ -491,7 +491,8 @@ void LLRenderTarget::bindTarget() if (mTex.empty()) { //no color buffer to draw to LL_PROFILER_GPU_ZONEC( "gl.DrawBuffer", 0x0000FF ) - glDrawBuffer(GL_NONE); + GLenum drawbuffers[] = {GL_NONE}; + glDrawBuffers(0, drawbuffers); glReadBuffer(GL_NONE); } -- cgit v1.2.3