gl_create_texture doesn't support cubemaps
Dheu3 opened this issue · comments
Dheu3 commented
gl_create_texture(buf, texture_format_cubemap)
fails to create texture and results in GL errors.
looks like in the binding if the variable ys
is divided by 6 before being passed to CreateTexture
it will work as expected
Wouter van Oortmerssen commented
The fix is probably a bit more complicated because CreateTexture
expects 6 buffers that follow eachother in memory, and the current construction code seems to simply create an interleaved 2D array.. but that should not be hard to fix.
I'll have a look.
Wouter van Oortmerssen commented
Fixed here: 2edd07a