From 8e401a5f42d482c54ad1796d186f952b0b64591d Mon Sep 17 00:00:00 2001 From: Olli Wang Date: Fri, 5 Sep 2014 03:35:40 +0800 Subject: [PATCH] Fix for issue #162 --- src/nanovg_gl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nanovg_gl.h b/src/nanovg_gl.h index 5ed5ef9..cc26780 100644 --- a/src/nanovg_gl.h +++ b/src/nanovg_gl.h @@ -642,7 +642,7 @@ static int glnvg__renderCreateTexture(void* uptr, int type, int w, int h, int im #ifdef NANOVG_GLES2 // Check for non-power of 2. - if (glnvg__nearestPow2(w) != (unsigned int)w || glnvg__nearestPow2(h) == (unsigned int)h) { + if (glnvg__nearestPow2(w) != (unsigned int)w || glnvg__nearestPow2(h) != (unsigned int)h) { // No repeat if ((imageFlags & NVG_IMAGE_REPEATX) != 0 || (imageFlags & NVG_IMAGE_REPEATY) != 0) { printf("Repeat X/Y is not supported for non power-of-two textures (%d x %d)\n", w, h);