mirror of https://github.com/kivy/kivy.git
texture: force allocation of npot texture for gpu that doesnt support npot texture. closes #1192
This commit is contained in:
parent
74cc619a1b
commit
e2289161ed
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue