summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorErik Kundiman <erik@megapahit.org>2023-09-06 12:21:49 +0800
committerErik Kundiman <erik@megapahit.org>2023-09-06 12:21:49 +0800
commit39916024f4878739a64c785cdaa16cdccc171e7f (patch)
treefba1cdf63f1a58f04701662f48b2221a8ba3be04 /indra
parent3ffe942384ca99c2407c79eee782201973bcb095 (diff)
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.
Diffstat (limited to 'indra')
-rw-r--r--indra/llrender/llrendertarget.cpp3
1 files changed, 2 insertions, 1 deletions
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);
}