error out when no renderer was created due to unknown/unsupported PixelFormat
svn-id: r36074
This commit is contained in:
parent
c2847572f1
commit
508f254ff7
1 changed files with 5 additions and 6 deletions
|
@ -178,15 +178,14 @@ VectorRenderer *createRenderer(int mode) {
|
||||||
PixelFormat format = g_system->getOverlayFormat();
|
PixelFormat format = g_system->getOverlayFormat();
|
||||||
if (format == createPixelFormat<1555>()) {
|
if (format == createPixelFormat<1555>()) {
|
||||||
CREATE_RENDERER_16(1555)
|
CREATE_RENDERER_16(1555)
|
||||||
}
|
} else if (format == createPixelFormat<4444>()) {
|
||||||
if (format == createPixelFormat<4444>()) {
|
|
||||||
CREATE_RENDERER_16(4444)
|
CREATE_RENDERER_16(4444)
|
||||||
}
|
} else if (format == createPixelFormat<555>()) {
|
||||||
if (format == createPixelFormat<555>()) {
|
|
||||||
CREATE_RENDERER_16(555)
|
CREATE_RENDERER_16(555)
|
||||||
}
|
} else if (format == createPixelFormat<565>()) {
|
||||||
if (format == createPixelFormat<565>()) {
|
|
||||||
CREATE_RENDERER_16(565)
|
CREATE_RENDERER_16(565)
|
||||||
|
} else {
|
||||||
|
error("createRenderer(): PixelFormat not supported");
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue