From a6770e0beee66e14cf21382404dc63a78afca11c Mon Sep 17 00:00:00 2001 From: Dries Harnie Date: Thu, 26 Sep 2019 17:02:54 +0200 Subject: [PATCH] AMIGAOS4: Use GL_UNSIGNED_INT for uploading video frames GL_UNSIGNED_INT_8_8_8_8 is not (yet) recognized as a format. --- engines/grim/gfx_opengl.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/engines/grim/gfx_opengl.cpp b/engines/grim/gfx_opengl.cpp index 4c06025b496..0518407ca34 100644 --- a/engines/grim/gfx_opengl.cpp +++ b/engines/grim/gfx_opengl.cpp @@ -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;