Allow RGB24 in textures.
authorCarl Hetherington <cth@carlh.net>
Tue, 14 Sep 2021 19:25:18 +0000 (21:25 +0200)
committerCarl Hetherington <cth@carlh.net>
Mon, 27 Sep 2021 11:41:46 +0000 (13:41 +0200)
src/wx/gl_video_view.cc

index 9f5865e35640784591e9f44f3ef6427ebb444dd8..4c51326d384cc01da7fe7d71f65242f575beff74 100644 (file)
@@ -802,6 +802,11 @@ Texture::set (shared_ptr<const Image> image)
                format = GL_RGBA;
                type = GL_UNSIGNED_BYTE;
                break;
+       case AV_PIX_FMT_RGB24:
+               internal_format = GL_RGBA8;
+               format = GL_RGB;
+               type = GL_UNSIGNED_BYTE;
+               break;
        case AV_PIX_FMT_XYZ12:
                internal_format = GL_RGBA12;
                format = GL_RGB;