Quantcast
Channel: openFrameworks - Latest posts
Viewing all articles
Browse latest Browse all 40524

"texture is not allocated" warning when drawing

$
0
0

2 suggestions:

if you know the dimensions of the image (300x300 for example), you can call the allocate() method explicitly before loading the texture:

floor.allocate( 300, 300, GL_RGB );

you could also check for the loading/allocation in the draw method:

if(floor.isAllocated()){
floor.draw(x,y,1)
}

cheers!


Viewing all articles
Browse latest Browse all 40524

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>