i don’t really see your border problem. it looks like you’re creating a texture with extrapixels at the sides to fill them with borders (thats why u use +2 in every dimension, i guess…)
is this right?
if so, are you sure that width+2 is power of 2? and height+2 and depth+2…
Here , width and height is power of 2 ( 64,128,256… ).
In OpenGL Programming Guide,Chapter 9, There is following description about glTexImage2D.
Both width and height must have the form 2^m+2b, where m is a non-negative integer , and b is the value of border. The maximum size of a texture map depends on the implementation of OpenGL, but it must be at least 64x64( or 66x66 widh borders).
So , I understand if I want to create a texture widh border , I specify 2^m + 2 value for width.
I try to following sentences , but there is no image…
Yes, you’re right, I was wrong, sorry. Had to reread the spec again and found the correct paragraph this time.
Have you tried without borders? It might be possible that texture borders (even though mandated by the spec) are not supported by your hardware.