libobs-opengl: Fix GS_A8 texture format
The non-internal format should be set to R8, and then swizzle is used to set the red channel to the alpha channel.master
parent
aa2bea3749
commit
ddc8e6fde2
|
@ -39,7 +39,7 @@ enum copy_type {
|
|||
static inline GLint convert_gs_format(enum gs_color_format format)
|
||||
{
|
||||
switch (format) {
|
||||
case GS_A8: return GL_RGBA;
|
||||
case GS_A8: return GL_RED;
|
||||
case GS_R8: return GL_RED;
|
||||
case GS_RGBA: return GL_RGBA;
|
||||
case GS_BGRX: return GL_BGRA;
|
||||
|
|
Loading…
Reference in New Issue