提交 51d33843 编写于 作者: J jp9000

Only do the alpha swizzle on alpha textures

Avoids problems if swizzles are used elsewhere (like in the newer X11
plugins)
上级 81153cb1
......@@ -322,8 +322,8 @@ static void strip_mipmap_filter(GLint *filter)
static inline void apply_swizzle(struct gs_texture *tex)
{
gl_tex_param_i(tex->gl_target, GL_TEXTURE_SWIZZLE_R,
(tex->format == GS_A8) ? GL_ALPHA : GL_RED);
if (tex->format == GS_A8)
gl_tex_param_i(tex->gl_target, GL_TEXTURE_SWIZZLE_R, GL_ALPHA);
}
static bool load_texture_sampler(texture_t tex, samplerstate_t ss)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册