2
0
mirror of https://github.com/FWGS/xash3d-fwgs synced 2024-11-25 03:11:06 +01:00

platform/android: disable swbuffer resize hack, wrong buffer size really is an error that should be fixed on Activity side, not here

This commit is contained in:
mittorn 2023-10-26 20:56:36 +03:00
parent 7013caa07d
commit ef93c04db6

View File

@ -504,14 +504,16 @@ qboolean SW_CreateBuffer( int width, int height, uint *stride, uint *bpp, uint *
Con_Printf( "SW_CreateBuffer: buffer %d %d %x %d %p\n", buffer.width, buffer.height, buffer.format, buffer.stride, buffer.bits );
if( width > buffer.width || height > buffer.height )
{
Con_Printf( "SW_CreateBuffer: buffer too small %d %d\n", width, height );
// resize event missed?
// resize event missed? do not resize now, wait for REAL resize event or when java code will be fixed
Con_Printf( S_ERROR "SW_CreateBuffer: buffer too small, need %dx%d, got %dx%d, java part probably sucks\n", width, height, buffer.width, buffer.height );
#if 0
if( jni.width < buffer.width )
jni.width = buffer.width;
if( jni.height < buffer.height )
jni.width = buffer.height;
VID_SetMode();
Android_UpdateSurface( true );
#endif
return false;
}
if( buffer.format != WINDOW_FORMAT_RGB_565 )