From fd04e52a069848244a56e59d93698fbaeab41338 Mon Sep 17 00:00:00 2001 From: Garux Date: Fri, 15 Dec 2017 05:18:09 +0300 Subject: [PATCH] * disable MSAA in Texture Browser, even if forced via driver --- radiant/texwindow.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/radiant/texwindow.cpp b/radiant/texwindow.cpp index 5a87489f..746afa12 100644 --- a/radiant/texwindow.cpp +++ b/radiant/texwindow.cpp @@ -1100,7 +1100,9 @@ void Texture_Draw( TextureBrowser& textureBrowser ){ glClear( GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT ); glDisable( GL_DEPTH_TEST ); - //glDisable( GL_BLEND ); + if( GlobalOpenGL().GL_1_3() ) { + glDisable( GL_MULTISAMPLE ); + } if ( g_TextureBrowser_enableAlpha ) { glEnable( GL_BLEND ); glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); @@ -1282,6 +1284,10 @@ void Texture_Draw( TextureBrowser& textureBrowser ){ // reset the current texture glBindTexture( GL_TEXTURE_2D, 0 ); + if( GlobalOpenGL().GL_1_3() ) { + glEnable( GL_MULTISAMPLE ); + } + glDisable( GL_BLEND ); //qglFinish(); }