Vulkan: Skip MSAA resolve when no deferred pass is active (#7854)

* stub check for msaa

* initialize viewport variables
This commit is contained in:
LuytenKy authored and GitHub committed 2026-10-15 18:04:32 +02:00
1 parent 88669e4518
commit e76e844d02
4 files changed
+6 -3

No files matched your search

+1 -1
View File
@@ -956,7 +956,7 @@ void gr_opengl_use_viewport(os::Viewport* view) {
int opengl_init_display_device()
{
os::ViewPortProperties attrs;
os::ViewPortProperties attrs = {};
attrs.enable_opengl = true;
attrs.gl_attributes.major_version = MIN_REQUIRED_GL_VERSION / 10;
+3
View File
@@ -271,6 +271,9 @@ void vulkan_deferred_lighting_begin(bool clearNonColorBufs)
void vulkan_deferred_lighting_msaa()
{
if (!Deferred_lighting) {
return;
}
if (Cmdline_msaa_enabled <= 0) {
return;
}
+1 -1
View File
@@ -570,7 +570,7 @@ bool VulkanRenderer::initialize()
bool VulkanRenderer::initDisplayDevice() const
{
os::ViewPortProperties attrs;
os::ViewPortProperties attrs = {};
attrs.enable_opengl = false;
attrs.enable_vulkan = true;
+1 -1
View File
@@ -39,7 +39,7 @@ SDL_DisplayID get_debug_display() {
namespace osapi {
DebugWindow::DebugWindow() {
os::ViewPortProperties attrs;
os::ViewPortProperties attrs = {};
uint32_t display = get_debug_display();
attrs.display = display;