summaryrefslogtreecommitdiff
path: root/src/vrend_blitter.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/vrend_blitter.c')
-rw-r--r--src/vrend_blitter.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/vrend_blitter.c b/src/vrend_blitter.c
index 8783a4f..a5e3655 100644
--- a/src/vrend_blitter.c
+++ b/src/vrend_blitter.c
@@ -526,6 +526,9 @@ void vrend_renderer_blit_gl(struct vrend_context *ctx,
glBindTexture(src_res->target, src_res->id);
+ if (vrend_format_is_emulated_alpha(info->dst.format))
+ glTexParameteri(src_res->target, GL_TEXTURE_SWIZZLE_R, GL_ALPHA);
+
glTexParameteri(src_res->target, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE);
glTexParameteri(src_res->target, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE);
glTexParameteri(src_res->target, GL_TEXTURE_WRAP_R, GL_CLAMP_TO_EDGE);