All: Only convert blend state if "dirty"

This commit is contained in:
Henrik Rydgard authored and Henrik Rydgård committed 2017-08-14 11:14:26 +02:00
1 parent 3960a4d791
commit e4567c694c
12 files changed
+40 -23

No files matched your search

+2 -1
View File
@@ -131,7 +131,8 @@ void ResetShaderBlending() {
void DrawEngineVulkan::ConvertStateToVulkanKey(FramebufferManagerVulkan &fbManager, ShaderManagerVulkan *shaderManager, int prim, VulkanPipelineRasterStateKey &key, VulkanDynamicState &dynState) {
bool useBufferedRendering = g_Config.iRenderingMode != FB_NON_BUFFERED_MODE;
{
if (gstate_c.IsDirty(DIRTY_BLEND_STATE)) {
gstate_c.Clean(DIRTY_BLEND_STATE);
// Unfortunately, this isn't implemented yet.
gstate_c.SetAllowShaderBlend(false);
if (gstate.isModeClear()) {