add assert(g_system) for backends that call InitScalers() from their OSystem ctor (at which point g_system is still NULL)
svn-id: r36332
This commit is contained in:
parent
6d70045228
commit
7fc7216175
1 changed files with 2 additions and 1 deletions
|
@ -144,6 +144,7 @@ void InitScalers(uint32 BitFormat) {
|
|||
} else if (gBitFormat == 565) {
|
||||
format = Graphics::createPixelFormat<565>();
|
||||
} else {
|
||||
assert(g_system);
|
||||
format = g_system->getOverlayFormat();
|
||||
}
|
||||
|
||||
|
@ -169,7 +170,7 @@ void DestroyScalers(){
|
|||
|
||||
/**
|
||||
* Trivial 'scaler' - in fact it doesn't do any scaling but just copies the
|
||||
* source to the destionation.
|
||||
* source to the destination.
|
||||
*/
|
||||
void Normal1x(const uint8 *srcPtr, uint32 srcPitch, uint8 *dstPtr, uint32 dstPitch,
|
||||
int width, int height) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue