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
jp9000 2016-03-10 00:36:51 -08:00
parent aa2bea3749
commit ddc8e6fde2
1 changed files with 1 additions and 1 deletions

View File

@ -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;