aardappel / lobster

The Lobster Programming Language

Home Page:http://strlen.com/lobster

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

gl_create_texture doesn't support cubemaps

Dheu3 opened this issue · comments

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

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.