mirror of
https://gitea.wildfiregames.com/0ad/0ad
synced 2026-06-16 05:13:58 -07: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:
parent
d1a7aa2858
commit
b5d85e279f
1 changed files with 3 additions and 0 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in a new issue