Hello as far as I understand only diffrence is that glTexStorage2D can not be changed (constant amount of allocated memory) and thanks to this faster and glTexImage2D can lead to change of amount of memory allocated for texture but is slower.
I need to occasionally change the texture size (infrequently byt big changes in size) and I wanted to migrate from glTexStorage2D to glTexImage2D, but my texture stop functioning
I initialized earlier my texture like
glTexStorage2D(GL_TEXTURE_2D, 1, GL_RType, width, height);
glTexSubImage2D(GL_TEXTURE_2D,0,0,0, widthh, heightt, GL_RED_INTEGER, textSpec.OpGlType, data)
and it worked
now I changed to no immidiately assigning dataa by
glTexImage2D(GL_TEXTURE_2D,0,0,0, widthh, heightt, GL_RED_INTEGER, textSpec.OpGlType, data)
and it no longer work - what am I doing wrong?