File tree 1 file changed +3
-2
lines changed
game_patch/graphics/d3d11
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -438,7 +438,8 @@ namespace df::gr::d3d11
438
438
render_context_.set_primitive_topology (D3D11_PRIMITIVE_TOPOLOGY_TRIANGLELIST);
439
439
440
440
std::optional<gr::Mode> forced_mode;
441
- if (params.flags & 1 ) {
441
+ bool ir_scanner = (params.flags & 1 ) != 0 ;
442
+ if (ir_scanner) {
442
443
// used by rail gun scanner for heat overlays
443
444
forced_mode.emplace (
444
445
TEXTURE_SOURCE_NONE,
@@ -486,7 +487,7 @@ namespace df::gr::d3d11
486
487
render_context_.set_textures (texture, -1 );
487
488
render_context_.draw_indexed (b.num_indices , b.start_index , b.base_vertex );
488
489
}
489
- if (params.powerup_bitmaps [0 ] != -1 ) {
490
+ if (params.powerup_bitmaps [0 ] != -1 && !ir_scanner ) {
490
491
gr::Mode powerup_mode{
491
492
gr::TEXTURE_SOURCE_CLAMP,
492
493
gr::COLOR_SOURCE_TEXTURE,
You can’t perform that action at this time.
0 commit comments