Skip to content

Commit

Permalink
Correct internal format for DepthBufferToRDRAM color texture.
Browse files Browse the repository at this point in the history
  • Loading branch information
gonetz committed May 13, 2015
1 parent d3f6754 commit 243e186
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/FrameBuffer.cpp
Expand Up @@ -1040,7 +1040,7 @@ void DepthBufferToRDRAM::Init()
textureCache().addFrameBufferTextureSize(m_pDepthTexture->textureBytes);

glBindTexture( GL_TEXTURE_2D, m_pColorTexture->glName );
glTexImage2D(GL_TEXTURE_2D, 0, GL_RED, m_pColorTexture->realWidth, m_pColorTexture->realHeight, 0, GL_RED, GL_UNSIGNED_BYTE, NULL);
glTexImage2D(GL_TEXTURE_2D, 0, GL_R8, m_pColorTexture->realWidth, m_pColorTexture->realHeight, 0, GL_RED, GL_UNSIGNED_BYTE, NULL);
glTexParameteri( GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST );
glTexParameteri( GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST );

Expand Down

0 comments on commit 243e186

Please sign in to comment.