aboutsummaryrefslogtreecommitdiff
path: root/pacc/pacc-gl.c
diff options
context:
space:
mode:
Diffstat (limited to 'pacc/pacc-gl.c')
-rw-r--r--pacc/pacc-gl.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/pacc/pacc-gl.c b/pacc/pacc-gl.c
index 71435de..e1463b8 100644
--- a/pacc/pacc-gl.c
+++ b/pacc/pacc-gl.c
@@ -246,6 +246,7 @@ static void pacc_calc_off(
static void pacc_buf_rect_off(
const struct pacc_ctx *pc, struct pacc_buf *pb,
int x, int y, int w, int h, int xoff, int yoff) {
+ if (!w && !h) return;
float scale[2];
float off[2];
float tscale[2];