Texture Buffers

Archives Forums/Blitz3D Bug Reports/Texture Buffers

_PJ_(Posted 2013) [#1]
Not sure whether this is my graphics card, Windows 8, DIrectX11's poor interpretation of 9.0c and earlier or something else...

Maybe I'm just missing something incredibly obvious!

However, the following will always fail with "Buffer does not exist" error when trying to access it with SetBuffer

Graphics3D 1024,768,32,0
Test=CreateTexture(128,128,50)
n=TextureBuffer(Test)
SetBuffer n


It seems that n is NOT popualted, so TextureBuffer is returning 0


Floyd(Posted 2013) [#2]
I assume it's because there is no color map. It works with flags set to 51.


_PJ_(Posted 2013) [#3]
Wow, thanks Floyd!

I never even considered looking at the flags, I only noticed this happening because I was trying to run an old forest demo thing by jfk & Beaker which definitely used to work.

Presumably something has changed along the way, but fortunately, I can't think of any scenario where I'd need a texture without colour flags set!

---
Confirmed, all working perfectly when flag 1 is set.
Thanks :)