491059ca82
For textures that were imported as wrapping, the legacy renderer relied on GL repeat state being set as a once off during load, and didn't alter the GL wrapping state at runtime. Batching was setting wrapping according to the CANVAS_RECT_TILE flag on rects, however this reset GL wrapping to clamp after use, which was conflicting with later drawcalls that relied on the default wrapping being preserved. In this PR we only set the wrapping in GL if the texture has not been imported with wrapping. This duplicates the logic in the legacy renderer and solves the state bug. |
||
---|---|---|
.. | ||
shaders | ||
rasterizer_array_gles2.h | ||
rasterizer_canvas_base_gles2.cpp | ||
rasterizer_canvas_base_gles2.h | ||
rasterizer_canvas_gles2.cpp | ||
rasterizer_canvas_gles2.h | ||
rasterizer_gles2.cpp | ||
rasterizer_gles2.h | ||
rasterizer_scene_gles2.cpp | ||
rasterizer_scene_gles2.h | ||
rasterizer_storage_gles2.cpp | ||
rasterizer_storage_gles2.h | ||
SCsub | ||
shader_compiler_gles2.cpp | ||
shader_compiler_gles2.h | ||
shader_gles2.cpp | ||
shader_gles2.h |