AMIGAOS4: Use GL_UNSIGNED_INT for uploading video frames
GL_UNSIGNED_INT_8_8_8_8 is not (yet) recognized as a format.
This commit is contained in:
parent
6e02a103ab
commit
a6770e0bee
1 changed files with 6 additions and 0 deletions
|
@ -1584,8 +1584,14 @@ void GfxOpenGL::prepareMovieFrame(Graphics::Surface *frame) {
|
|||
|
||||
// Aspyr Logo format
|
||||
if (frame->format == Graphics::PixelFormat(4, 8, 8, 8, 0, 8, 16, 24, 0)) {
|
||||
#if !defined(__amigaos4__)
|
||||
format = GL_BGRA;
|
||||
dataType = GL_UNSIGNED_INT_8_8_8_8;
|
||||
#else
|
||||
// AmigaOS' MiniGL does not understand GL_UNSIGNED_INT_8_8_8_8 yet.
|
||||
format = GL_BGRA;
|
||||
dataType = GL_UNSIGNED_BYTE;
|
||||
#endif
|
||||
} else if (frame->format == Graphics::PixelFormat(4, 8, 8, 8, 0, 16, 8, 0, 0)) {
|
||||
format = GL_BGRA;
|
||||
dataType = GL_UNSIGNED_INT_8_8_8_8_REV;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue