Skip to content

Instantly share code, notes, and snippets.

@rygorous
Created February 6, 2013 02:39
Embed
What would you like to do?
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