mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-22 22:00:39 -06:00
OGL: Invalidate tracked state when calling ResetAPIState()
Due to the current design, any of the GL state can be mutated after calling this function, so we can't assume that the tracked state will match if we call SetPipeline() after ResetAPIState().
This commit is contained in:
@ -199,6 +199,13 @@ SamplerState& SamplerState::operator=(const SamplerState& rhs)
|
||||
|
||||
namespace RenderState
|
||||
{
|
||||
RasterizationState GetInvalidRasterizationState()
|
||||
{
|
||||
RasterizationState state;
|
||||
state.hex = UINT32_C(0xFFFFFFFF);
|
||||
return state;
|
||||
}
|
||||
|
||||
RasterizationState GetNoCullRasterizationState()
|
||||
{
|
||||
RasterizationState state = {};
|
||||
@ -206,6 +213,13 @@ RasterizationState GetNoCullRasterizationState()
|
||||
return state;
|
||||
}
|
||||
|
||||
DepthState GetInvalidDepthState()
|
||||
{
|
||||
DepthState state;
|
||||
state.hex = UINT32_C(0xFFFFFFFF);
|
||||
return state;
|
||||
}
|
||||
|
||||
DepthState GetNoDepthTestingDepthStencilState()
|
||||
{
|
||||
DepthState state = {};
|
||||
@ -215,6 +229,13 @@ DepthState GetNoDepthTestingDepthStencilState()
|
||||
return state;
|
||||
}
|
||||
|
||||
BlendingState GetInvalidBlendingState()
|
||||
{
|
||||
BlendingState state;
|
||||
state.hex = UINT32_C(0xFFFFFFFF);
|
||||
return state;
|
||||
}
|
||||
|
||||
BlendingState GetNoBlendingBlendState()
|
||||
{
|
||||
BlendingState state = {};
|
||||
@ -230,6 +251,13 @@ BlendingState GetNoBlendingBlendState()
|
||||
return state;
|
||||
}
|
||||
|
||||
SamplerState GetInvalidSamplerState()
|
||||
{
|
||||
SamplerState state;
|
||||
state.hex = UINT64_C(0xFFFFFFFFFFFFFFFF);
|
||||
return state;
|
||||
}
|
||||
|
||||
SamplerState GetPointSamplerState()
|
||||
{
|
||||
SamplerState state = {};
|
||||
|
Reference in New Issue
Block a user