mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-25 21:41:30 +00:00
Sub pinkie crashes the pal drawer :(
This commit is contained in:
parent
0108ff89d7
commit
ddb0161f9c
2 changed files with 6 additions and 1 deletions
|
@ -226,6 +226,9 @@ void RenderPolySprite::Render(const TriMatrix &worldToClip, AActor *thing, subse
|
|||
uint32_t g = (args.uniforms.color >> 8) & 0xff;
|
||||
uint32_t b = args.uniforms.color & 0xff;
|
||||
args.uniforms.color = RGB32k.RGB[r >> 3][g >> 3][b >> 3];
|
||||
|
||||
if (blendmode == TriBlendMode::Sub) // Sub crashes in pal mode for some weird reason.
|
||||
blendmode = TriBlendMode::Add;
|
||||
}
|
||||
|
||||
PolyTriangleDrawer::draw(args, TriDrawVariant::DrawSubsector, blendmode);
|
||||
|
|
|
@ -371,7 +371,9 @@ FString DrawPolyTrianglesCommand::DebugInfo()
|
|||
}
|
||||
|
||||
FString info;
|
||||
info.Format("DrawPolyTriangles: variant = %s, blend mode = %s, color = %d", variantstr.GetChars(), blendmodestr.GetChars(), args.uniforms.color);
|
||||
info.Format("DrawPolyTriangles: variant = %s, blend mode = %s, color = %d, light = %d, textureWidth = %d, textureHeight = %d, texture = %s, translation = %s, colormaps = %s",
|
||||
variantstr.GetChars(), blendmodestr.GetChars(), args.uniforms.color, args.uniforms.light, args.textureWidth, args.textureHeight,
|
||||
args.texturePixels ? "ptr" : "null", args.translation ? "ptr" : "null", args.colormaps ? "ptr" : "null");
|
||||
return info;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue