Skip to content

Commit

Permalink
GL3Plus: alias CS UBO to VS UBO as both wont be present at the same time
Browse files Browse the repository at this point in the history
  • Loading branch information
paroj committed Jan 13, 2024
1 parent d0efc2e commit a082c56
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions RenderSystems/GL3Plus/src/GLSL/src/OgreGLSLShader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -574,11 +574,11 @@ namespace Ogre {
if (name == "OgreUniforms") // default buffer
{
extractUniforms(blockIdx);
int binding = int(mType);
int binding = mType == GPT_COMPUTE_PROGRAM ? 0 : int(mType);
if (binding > 1)
LogManager::getSingleton().logWarning(
getResourceLogName() +
" - using a UBO in this shader type will alias with shared_params");
" - using 'OgreUniforms' in this shader type does alias with shared_params");

mDefaultBuffer = hbm.createUniformBuffer(values[2]);
static_cast<GL3PlusHardwareBuffer*>(mDefaultBuffer.get())->setGLBufferBinding(binding);
Expand Down

0 comments on commit a082c56

Please sign in to comment.