diff --git a/webrender/res/brush_image.glsl b/webrender/res/brush_image.glsl index 936af52c01..82c54e9b76 100644 --- a/webrender/res/brush_image.glsl +++ b/webrender/res/brush_image.glsl @@ -94,7 +94,11 @@ void brush_vs( // Set the clip bounds to a value that won't have any // effect for local space images. +#ifdef WR_FEATURE_TEXTURE_RECT + vUvClipBounds = vec4(0.0, 0.0, vec2(textureSize(sColor0))); +#else vUvClipBounds = vec4(0.0, 0.0, 1.0, 1.0); +#endif break; } }