Allow the graphicsContext to be overridden.

This is useful when coming from, for example, headless.
This commit is contained in:
Unknown W. Brackets authored and Henrik Rydgard committed 2016-03-20 19:31:02 +01:00
1 parent 82205a4660
commit 0b7e43d05c
1 file changed
+3 -1
+3 -1
View File
@@ -389,7 +389,9 @@ bool PSP_InitStart(const CoreParameter &coreParam, std::string *error_string) {
GraphicsContext *temp = coreParameter.graphicsContext;
coreParameter = coreParam;
coreParameter.graphicsContext = temp;
if (coreParameter.graphicsContext == nullptr) {
coreParameter.graphicsContext = temp;
}
coreParameter.errorString = "";
pspIsIniting = true;