diff options
author | Erik Kundiman <erik@megapahit.org> | 2023-09-06 12:21:49 +0800 |
---|---|---|
committer | Erik Kundiman <erik@megapahit.org> | 2023-09-06 12:21:49 +0800 |
commit | 39916024f4878739a64c785cdaa16cdccc171e7f (patch) | |
tree | fba1cdf63f1a58f04701662f48b2221a8ba3be04 /indra | |
parent | 3ffe942384ca99c2407c79eee782201973bcb095 (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.cpp | 3 |
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); } |