summaryrefslogtreecommitdiffstats
path: root/drivers/vulkan/rendering_device_vulkan.cpp
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2020-01-11 22:26:52 -0300
committerJuan Linietsky <reduzio@gmail.com>2020-02-11 12:14:23 +0100
commitbd364d1447ea3b745299c6460d6d90acd8637ab5 (patch)
treefa90e24d33145e00daedc19012af77e9cd0d9449 /drivers/vulkan/rendering_device_vulkan.cpp
parentb859e699190e45cbf1fda5c32838f1d59c9b1d8e (diff)
downloadredot-engine-bd364d1447ea3b745299c6460d6d90acd8637ab5.tar.gz
Auto exposure re-implemented in Vulkan
Diffstat (limited to 'drivers/vulkan/rendering_device_vulkan.cpp')
-rw-r--r--drivers/vulkan/rendering_device_vulkan.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/drivers/vulkan/rendering_device_vulkan.cpp b/drivers/vulkan/rendering_device_vulkan.cpp
index 98b1bc1115..13a0948687 100644
--- a/drivers/vulkan/rendering_device_vulkan.cpp
+++ b/drivers/vulkan/rendering_device_vulkan.cpp
@@ -5751,6 +5751,8 @@ void RenderingDeviceVulkan::draw_list_bind_render_pipeline(DrawListID p_list, RI
dl->validation.pipeline_push_constant_suppplied = false;
#endif
}
+
+ dl->state.pipeline_shader = pipeline->shader;
}
#ifdef DEBUG_ENABLED
@@ -5975,8 +5977,8 @@ void RenderingDeviceVulkan::draw_list_draw(DrawListID p_list, bool p_use_indices
if (p_procedural_vertices > 0) {
#ifdef DEBUG_ENABLED
- ERR_FAIL_COND_MSG(dl->validation.pipeline_vertex_format == INVALID_ID,
- "Procedural vertices requested, but pipeline expects a vertex array.");
+ ERR_FAIL_COND_MSG(dl->validation.pipeline_vertex_format == INVALID_ID,
+ "Procedural vertices requested, but pipeline expects a vertex array.");
#endif
to_draw = p_procedural_vertices;
} else {
@@ -6153,6 +6155,8 @@ void RenderingDeviceVulkan::compute_list_bind_compute_pipeline(ComputeListID p_l
cl->validation.pipeline_push_constant_suppplied = false;
#endif
}
+
+ cl->state.pipeline_shader = pipeline->shader;
}
#ifdef DEBUG_ENABLED