mirror of
https://github.com/scp-fs2open/fs2open.github.com.git
synced 2026-11-07 08:15:59 -10:00
Vulkan: Skip MSAA resolve when no deferred pass is active (#7854)
* stub check for msaa * initialize viewport variables
This commit is contained in:
1 parent
88669e4518
commit
e76e844d02
4 files changed
+6
-3
No files matched your search
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in new issue
Block a user