texture: force allocation of npot texture for gpu that doesnt support npot texture. closes #1192

This commit is contained in:
Mathieu Virbel 2013-05-22 20:31:43 +02:00
parent 74cc619a1b
commit e2289161ed
1 changed files with 1 additions and 1 deletions

View File

@ -487,7 +487,7 @@ cdef Texture _texture_create(int width, int height, str colorfmt, str bufferfmt,
texture = Texture(texture_width, texture_height, target,
colorfmt=colorfmt, bufferfmt=bufferfmt, mipmap=mipmap,
callback=callback)
if allocate:
if allocate or make_npot:
texture.flags |= TI_NEED_ALLOCATE
# set default parameter for this texture