Created
December 13, 2015 17:42
-
-
Save metacollin/89d83a76140b9893fb7e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/common/gal/opengl/opengl_gal.cpp b/common/gal/opengl/opengl_gal.cpp | |
index 73c71fb..d618ef6 100644 | |
--- a/common/gal/opengl/opengl_gal.cpp | |
+++ b/common/gal/opengl/opengl_gal.cpp | |
@@ -163,7 +163,10 @@ void OPENGL_GAL::BeginDrawing() | |
// Enable the depth buffer | |
glEnable( GL_DEPTH_TEST ); | |
glDepthFunc( GL_LESS ); | |
- | |
+ glEnable( GL_LINE_SMOOTH ); | |
+ glHint( GL_PERSPECTIVE_CORRECTION_HINT, GL_DONT_CARE ); | |
+ glHint( GL_LINE_SMOOTH_HINT, GL_NICEST ); | |
+ glHint( GL_POLYGON_SMOOTH_HINT, GL_NICEST ); | |
// Setup blending, required for transparent objects | |
glEnable( GL_BLEND ); | |
glBlendFunc( GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment