|
|
@ -379,6 +379,7 @@ void GRenderWindow::InitRenderTarget() { |
|
|
fmt.setVersion(4, 3); |
|
|
fmt.setVersion(4, 3); |
|
|
if (Settings::values.use_compatibility_profile) { |
|
|
if (Settings::values.use_compatibility_profile) { |
|
|
fmt.setProfile(QSurfaceFormat::CompatibilityProfile); |
|
|
fmt.setProfile(QSurfaceFormat::CompatibilityProfile); |
|
|
|
|
|
fmt.setOption(QSurfaceFormat::FormatOption::DeprecatedFunctions); |
|
|
} else { |
|
|
} else { |
|
|
fmt.setProfile(QSurfaceFormat::CoreProfile); |
|
|
fmt.setProfile(QSurfaceFormat::CoreProfile); |
|
|
} |
|
|
} |
|
|
|