From e2289161ede87da7260edc2ac71a0ce4c4cb8152 Mon Sep 17 00:00:00 2001 From: Mathieu Virbel Date: Wed, 22 May 2013 20:31:43 +0200 Subject: [PATCH] texture: force allocation of npot texture for gpu that doesnt support npot texture. closes #1192 --- kivy/graphics/texture.pyx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kivy/graphics/texture.pyx b/kivy/graphics/texture.pyx index 66a6a1cdd..9156c9740 100644 --- a/kivy/graphics/texture.pyx +++ b/kivy/graphics/texture.pyx @@ -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