summaryrefslogtreecommitdiffstats
path: root/Graphics/GraphicsEngineOpenGL
diff options
context:
space:
mode:
authorEgor Yusov <egor.yusov@gmail.com>2019-04-30 14:51:43 +0000
committerEgor Yusov <egor.yusov@gmail.com>2019-04-30 14:51:43 +0000
commit11916fefcc35c6cfbb62aa87d747bc79c8e53b95 (patch)
tree00078e3f64dc9347b4d8360b254fe5adb89f130b /Graphics/GraphicsEngineOpenGL
parentAdded matrix operator *= to math lib (diff)
downloadDiligentCore-11916fefcc35c6cfbb62aa87d747bc79c8e53b95.tar.gz
DiligentCore-11916fefcc35c6cfbb62aa87d747bc79c8e53b95.zip
Fixed bug in creating framebuffer for a cubemap face in OpenGL
Diffstat (limited to 'Graphics/GraphicsEngineOpenGL')
-rw-r--r--Graphics/GraphicsEngineOpenGL/src/TextureCube_OGL.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Graphics/GraphicsEngineOpenGL/src/TextureCube_OGL.cpp b/Graphics/GraphicsEngineOpenGL/src/TextureCube_OGL.cpp
index d979002e..d07e872a 100644
--- a/Graphics/GraphicsEngineOpenGL/src/TextureCube_OGL.cpp
+++ b/Graphics/GraphicsEngineOpenGL/src/TextureCube_OGL.cpp
@@ -242,9 +242,9 @@ void TextureCube_OGL::AttachToFramebuffer( const TextureViewDesc& ViewDesc, GLen
// GL_TEXTURE_CUBE_MAP_POSITIVE_X, GL_TEXTURE_CUBE_MAP_POSITIVE_Y, GL_TEXTURE_CUBE_MAP_POSITIVE_Z,
// GL_TEXTURE_CUBE_MAP_NEGATIVE_X, GL_TEXTURE_CUBE_MAP_NEGATIVE_Y, GL_TEXTURE_CUBE_MAP_NEGATIVE_Z,
// or GL_TEXTURE_2D_MULTISAMPLE.
- glFramebufferTexture2D( GL_DRAW_FRAMEBUFFER, AttachmentPoint, m_GlTexture, CubeMapFaceBindTarget, ViewDesc.MostDetailedMip );
+ glFramebufferTexture2D( GL_DRAW_FRAMEBUFFER, AttachmentPoint, CubeMapFaceBindTarget, m_GlTexture, ViewDesc.MostDetailedMip );
CHECK_GL_ERROR( "Failed to attach texture cube face to draw framebuffer" );
- glFramebufferTexture2D( GL_READ_FRAMEBUFFER, AttachmentPoint, m_GlTexture, CubeMapFaceBindTarget, ViewDesc.MostDetailedMip );
+ glFramebufferTexture2D( GL_READ_FRAMEBUFFER, AttachmentPoint, CubeMapFaceBindTarget, m_GlTexture, ViewDesc.MostDetailedMip );
CHECK_GL_ERROR( "Failed to attach texture cube face to read framebuffer" );
}
else