[Cin] OpenGL Texture Limit
Andrea paz
gamberucci.andrea at gmail.com
Thu Jun 5 09:30:10 CEST 2025
I have this OpenGL warning with X11-OpenGL driver:
void AWindowGUI::update_asset_list():
Warning: /home/paz/Video/hdr/hdr_02.mp4
dimensions 3840x2160 exceed OpenGL texture limit 0
In this case I used a 4k source, but the same happens with any
resolution, since the “texture limit” is 0.
I found this answer:
"If you want to know dynamically the texture size limit of your device
(because it's change depending on the device), you have to call this
method:
int[] maxTextureSize = new int[1];
gl.glGetIntegerv(GL10.GL_MAX_TEXTURE_SIZE, maxTextureSize, 0);
And don't forget that for some device (the Nexus One for example), the
texture size must be a power of 2 !"
And also:
"One note: It's a static method, so you can simply call
GLES10.glGetIntegerv(...)"
See: https://registry.khronos.org/OpenGL-Refpages/es2.0/xhtml/glGet.xml
But I have absolutely no idea where and how to use that call code. Suggestions?
Note: the limits of my device (on the specification sheet) should be:
16384x16384
More information about the Cin
mailing list