mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-06-21 05:04:45 +00:00
Removes border pixels drawing of the minimap texture with scissors after b991ef919b. Fixes #6382
Tested By: Langbart Differential Revision: https://code.wildfiregames.com/D4350 This was SVN commit r25997.
This commit is contained in:
@@ -494,6 +494,8 @@ void CMiniMapTexture::RenderFinalTexture()
|
||||
|
||||
if (m_EntitiesDrawn > 0)
|
||||
{
|
||||
glEnable(GL_SCISSOR_TEST);
|
||||
glScissor(1, 1, FINAL_TEXTURE_SIZE - 1, FINAL_TEXTURE_SIZE - 1);
|
||||
#if !CONFIG2_GLES
|
||||
glEnable(GL_VERTEX_PROGRAM_POINT_SIZE);
|
||||
#endif
|
||||
@@ -515,6 +517,7 @@ void CMiniMapTexture::RenderFinalTexture()
|
||||
#if !CONFIG2_GLES
|
||||
glDisable(GL_VERTEX_PROGRAM_POINT_SIZE);
|
||||
#endif
|
||||
glDisable(GL_SCISSOR_TEST);
|
||||
}
|
||||
|
||||
tech->EndPass();
|
||||
|
||||
Reference in New Issue
Block a user