The texture is clamp using clamp of the UVs, because if we clamp the texture using GPU_texture_wrap_mode, any place where this texture is used would be affected.
Fixing gpencil screen drawing after warning cleanup
I find strange that this needs to be static, and can see this being an issue for simultaneous drawing in the future. That said, better leave it working as before.
* gcc complain if you have a "main" variable * Missing header include in gpencil_draw.w * A few shadowed variables (we should avoid common names in (#define) macros) * Clear ambiguity in (!flag & VALUE) -> ((flag & VALUE) == 0)
The builtin shaders are free in blender close, so the engine must not free them. The memory leak was relatred to recreate the shaders again and again, so the free only use the last copy.