aboutsummaryrefslogtreecommitdiff
path: root/pacc/pacc-gl.c
diff options
context:
space:
mode:
authorTakamichi Horikawa <takamichiho@gmail.com>2017-09-12 21:23:09 +0900
committerTakamichi Horikawa <takamichiho@gmail.com>2017-09-12 21:23:09 +0900
commit676390c58c6367bcfeda901456d637939645b78e (patch)
tree47d4b6ba39b3042ab18db49ce6a868f65d8b0cc9 /pacc/pacc-gl.c
parent30e23cc766d25fb3253f16a0ac93031a933bcd60 (diff)
pacc: d3d9: fix unicode function
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];