Skip to content
Snippets Groups Projects
Commit a0898638 authored by Lactozilla's avatar Lactozilla :speech_balloon:
Browse files

Missing check

parent db873512
Branches
Tags
1 merge request!675PNG conversion refactoring
...@@ -129,6 +129,8 @@ void *Picture_PatchConvert( ...@@ -129,6 +129,8 @@ void *Picture_PatchConvert(
if (!inbpp) if (!inbpp)
I_Error("Picture_PatchConvert: unknown input bits per pixel?!"); I_Error("Picture_PatchConvert: unknown input bits per pixel?!");
if (!Picture_FormatBPP(outformat))
I_Error("Picture_PatchConvert: unknown output bits per pixel?!");
// If it's a patch, you can just figure out // If it's a patch, you can just figure out
// the dimensions from the header. // the dimensions from the header.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment