mirror of
https://github.com/brunoherbelin/vimix.git
synced 2025-12-13 19:29:58 +01:00
Bugfix multisampling support
This commit is contained in:
@@ -1022,7 +1022,10 @@ bool RenderingWindow::init(int index, GLFWwindow *share)
|
|||||||
glHint(GL_LINE_SMOOTH_HINT, GL_NICEST);
|
glHint(GL_LINE_SMOOTH_HINT, GL_NICEST);
|
||||||
|
|
||||||
// Enable Antialiasing multisampling for main window
|
// Enable Antialiasing multisampling for main window
|
||||||
if ( openGLExtensionAvailable( "GL_ARB_multisample" ) || openGLExtensionAvailable( "GL_EXT_multisample" )) {
|
if ( openGLExtensionAvailable( "GL_ARB_multisample" ) ||
|
||||||
|
openGLExtensionAvailable( "GL_ARB_texture_multisample" )||
|
||||||
|
openGLExtensionAvailable( "GL_EXT_multisample" )||
|
||||||
|
openGLExtensionAvailable( "GL_EXT_framebuffer_multisample" )) {
|
||||||
|
|
||||||
if (Settings::application.render.multisampling > 0 && master_ == NULL) {
|
if (Settings::application.render.multisampling > 0 && master_ == NULL) {
|
||||||
glEnable(GL_MULTISAMPLE);
|
glEnable(GL_MULTISAMPLE);
|
||||||
|
|||||||
@@ -185,7 +185,7 @@ struct RenderConfig
|
|||||||
RenderConfig() {
|
RenderConfig() {
|
||||||
disabled = false;
|
disabled = false;
|
||||||
vsync = 1;
|
vsync = 1;
|
||||||
multisampling = 2;
|
multisampling = 3;
|
||||||
ratio = 3;
|
ratio = 3;
|
||||||
res = 1;
|
res = 1;
|
||||||
custom_width = 1200;
|
custom_width = 1200;
|
||||||
|
|||||||
Reference in New Issue
Block a user