projects
/
dcpomatic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
23aa307
)
Allow RGB24 in textures.
author
Carl Hetherington
<cth@carlh.net>
Tue, 14 Sep 2021 19:25:18 +0000
(21:25 +0200)
committer
Carl Hetherington
<cth@carlh.net>
Mon, 27 Sep 2021 11:41:46 +0000
(13:41 +0200)
src/wx/gl_video_view.cc
patch
|
blob
|
history
diff --git
a/src/wx/gl_video_view.cc
b/src/wx/gl_video_view.cc
index 9f5865e35640784591e9f44f3ef6427ebb444dd8..4c51326d384cc01da7fe7d71f65242f575beff74 100644
(file)
--- a/
src/wx/gl_video_view.cc
+++ b/
src/wx/gl_video_view.cc
@@
-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;