diff options
Diffstat (limited to 'src/osd/modules/render/d3d/d3dhlsl.cpp')
-rw-r--r-- | src/osd/modules/render/d3d/d3dhlsl.cpp | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/src/osd/modules/render/d3d/d3dhlsl.cpp b/src/osd/modules/render/d3d/d3dhlsl.cpp index 7c30339853f..52bec85f06f 100644 --- a/src/osd/modules/render/d3d/d3dhlsl.cpp +++ b/src/osd/modules/render/d3d/d3dhlsl.cpp @@ -1570,12 +1570,16 @@ void shaders::render_quad(poly_info *poly, int vertnum) //next_index = phosphor_pass(rt, next_index, poly, vertnum); // create bloom textures - int old_index = next_index; - next_index = post_pass(rt, next_index, poly, vertnum, true); - next_index = downsample_pass(rt, next_index, poly, vertnum); + bool bloom_enabled = (options->bloom_scale > 0.0f); + if (bloom_enabled) + { + int old_index = next_index; + next_index = post_pass(rt, next_index, poly, vertnum, true); + next_index = downsample_pass(rt, next_index, poly, vertnum); + next_index = old_index; + } - // apply bloom textures - next_index = old_index; + // apply bloom textures (if enabled) and other post effects next_index = post_pass(rt, next_index, poly, vertnum, false); next_index = bloom_pass(rt, next_index, poly, vertnum); next_index = phosphor_pass(rt, next_index, poly, vertnum); |