Skip to content

Commit

Permalink
fix image repeation in gles2
Browse files Browse the repository at this point in the history
  • Loading branch information
李政 committed Jul 23, 2018
1 parent 4b91cf0 commit 8017f1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nanovg_gl.h
Original file line number Diff line number Diff line change
Expand Up @@ -644,7 +644,7 @@ static int glnvg__renderCreate(void* uptr)
"#ifdef NANOVG_GL3\n"
" vec4 color = texture(tex, pt);\n"
"#else\n"
" vec4 color = texture2D(tex, pt);\n"
" vec4 color = texture2D(tex, fract(pt));\n"
"#endif\n"
" if (texType == 1) color = vec4(color.xyz*color.w,color.w);"
" if (texType == 2) color = vec4(color.x);"
Expand Down

0 comments on commit 8017f1b

Please sign in to comment.