Ok, now scaling working fine on desktop with both OpenGL and OpenGL ES.
But there is problem if I compile stratagus with OpenGL/ES and start it with param -o (disable opengl/es). then stratagus freeze and show this error.
$ ./stratagus-dbg -d /usr/share/games/stratagus/wargus/ -v 800x600 -Z -o
...
X Error of failed request: BadValue (integer parameter out of range for operation)
Major opcode of failed request: 130 (MIT-SHM)
Minor opcode of failed request: 3 (X_ShmPutImage)
Value in failed request: 0x640
Serial number of failed request: 25
Current serial number in output stream: 26
And other small note: Help text for -Z should not be visible/compiled if opengl/es is not enabled at compile time (like options -O and -O)
Ok, now scaling working fine on desktop with both OpenGL and OpenGL ES.
But there is problem if I compile stratagus with OpenGL/ES and start it with param -o (disable opengl/es). then stratagus freeze and show this error.
$ ./stratagus-dbg -d /usr/share/ games/stratagus /wargus/ -v 800x600 -Z -o
...
X Error of failed request: BadValue (integer parameter out of range for operation)
Major opcode of failed request: 130 (MIT-SHM)
Minor opcode of failed request: 3 (X_ShmPutImage)
Value in failed request: 0x640
Serial number of failed request: 25
Current serial number in output stream: 26
And other small note: Help text for -Z should not be visible/compiled if opengl/es is not enabled at compile time (like options -O and -O)