I think that the problem comes from line :
glCheck(glGetIntegerv(GL_MAX_TEXTURE_SIZE, &size));
opengl indicate me an error at this line. (Invalid argument)
But this function returns the max texture's width and height in the same value ?
Or is it always the same maximum for the texture's width and height ?
My screen is very large but not so hight so....
And I have size problems with rendertextures also, are you sure that you create your textures with the right dimensions ?
I think that the problem comes from line :
glCheck(glGetIntegerv(GL_MAX_TEXTURE_SIZE, &size));
I'm pretty confident that you're right, given the error message that you got:
An internal OpenGL call failed in Texture.cpp(497)
;)
But this function returns the max texture's width and height in the same value ?
Yes. Don't forget that there is a (actually, several) documentation for OpenGL functions, when you're not sure of something.
My screen is very large but not so hight so....
It has nothing to do with the screen size.
And I have size problems with rendertextures also, are you sure that you create your textures with the right dimensions ?
The texture size is given by you.