Change the resolution
Instead of using a static 640/480, now the resolution is dynamic and determined from the config.cpp.
This commit is contained in:
parent
2f4c775196
commit
a9af6ab36f
|
@ -120,7 +120,7 @@ GLState::GLState(const Config &conf)
|
||||||
blendMode.init(BlendNormal);
|
blendMode.init(BlendNormal);
|
||||||
blend.init(true);
|
blend.init(true);
|
||||||
scissorTest.init(false);
|
scissorTest.init(false);
|
||||||
scissorBox.init(IntRect(0, 0, 640, 480));
|
scissorBox.init(IntRect(0, 0, conf.defScreenW, conf.defScreenH));
|
||||||
program.init(0);
|
program.init(0);
|
||||||
|
|
||||||
if (conf.maxTextureSize > 0)
|
if (conf.maxTextureSize > 0)
|
||||||
|
|
Loading…
Reference in New Issue