This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ID3D1X(PixelShader) *program = gdraw->fprog[which][additive].pshader; | |
| if (r->stencil_set) { | |
| // in stencil set mode, prefer not doing any shading at all | |
| // but if alpha test is on, we need to make an exception | |
| #ifndef GDRAW_D3D11_LEVEL9 // level9 can't do NULL PS it seems | |
| if (which != GDRAW_TEXTURE_alpha_test) | |
| program = NULL; | |
| else | |
| #endif | |
| { | |
| gdraw->blend_mode = -1; | |
| d3d->OMSetBlendState(gdraw->blend_no_color_write, four_zeros, ~0u); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment