mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-15 02:29:51 +01:00
Disable logic ops, the D3D11 debug layer says they don't work anyway..
This commit is contained in:
1 parent
f868a0c4a1
commit
d7238c39e9
2 files changed
+4
-1
No files matched your search
@@ -221,6 +221,7 @@ void DrawEngineD3D11::ApplyDrawState(int prim) {
|
||||
if (gstate_c.Supports(GPU_SUPPORTS_LOGIC_OP)) {
|
||||
// Logic Ops
|
||||
if (gstate.isLogicOpEnabled() && gstate.getLogicOp() != GE_LOGIC_COPY) {
|
||||
keys_.blend.blendEnable = false; // Can't have both blend & logic op - although I think the PSP can!
|
||||
keys_.blend.logicOpEnable = true;
|
||||
keys_.blend.logicOp = logicOps[gstate.getLogicOp()];
|
||||
}
|
||||
|
||||
@@ -206,7 +206,9 @@ D3D11DrawContext::D3D11DrawContext(ID3D11Device *device, ID3D11DeviceContext *de
|
||||
HRESULT result = device_->CheckFeatureSupport(D3D11_FEATURE_D3D11_OPTIONS, &options, sizeof(options));
|
||||
if (SUCCEEDED(result)) {
|
||||
if (options.OutputMergerLogicOp) {
|
||||
caps_.logicOpSupported = true;
|
||||
// Actually, need to check that the format supports logic ops as well.
|
||||
// Which normal UNORM formats don't seem to do. So meh.
|
||||
// caps_.logicOpSupported = true;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user