Skip to content

Commit

Permalink
Main: HardwarePixelBuffer::getRenderTarget - const correctness
Browse files Browse the repository at this point in the history
  • Loading branch information
paroj committed Feb 3, 2025
1 parent 3087fe4 commit c230ce6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion OgreMain/include/OgreHardwarePixelBuffer.h
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ namespace Ogre {
@return A pointer to the render target. This pointer has the lifespan of this
PixelBuffer.
*/
RenderTexture *getRenderTarget(size_t slice=0);
RenderTexture *getRenderTarget(size_t slice=0) const;

/// Gets the width of this buffer
uint32 getWidth() const { return mWidth; }
Expand Down
2 changes: 1 addition & 1 deletion OgreMain/src/OgreHardwarePixelBuffer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ namespace Ogre
}
//-----------------------------------------------------------------------------

RenderTexture *HardwarePixelBuffer::getRenderTarget(size_t zoffset)
RenderTexture *HardwarePixelBuffer::getRenderTarget(size_t zoffset) const
{
assert(mUsage & TU_RENDERTARGET);
return mSliceTRT.at(zoffset);
Expand Down

0 comments on commit c230ce6

Please sign in to comment.