mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-30 00:32:57 -04:00
Merge commit 'd1106953b219dbd786c789e92849063dd394bb38' into release/1.9.x
This commit is contained in:
commit
eeddc9c07d
@ -2708,6 +2708,10 @@ setup_gltex(GLTexture *gltex, int x_size, int y_size, int num_levels) {
|
||||
int t_bits = get_tex_shift(y_size);
|
||||
|
||||
if (s_bits < 0 || t_bits < 0) {
|
||||
tinydisplay_cat.error()
|
||||
<< "Texture size " << x_size << 'x' << y_size
|
||||
<< " unsupported: dimensions must be power of two"
|
||||
<< " and smaller than " << _max_texture_dimension << '\n';
|
||||
return false;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user