mirror of
https://gitlab.redox-os.org/redox-os/redox.git
synced 2026-06-28 07:44:18 +08:00
Fix color channels when using osmesa
This commit is contained in:
parent
e6285e3c28
commit
a0401c41c6
@ -285,7 +285,7 @@ main(int argc, char *argv[])
|
||||
limit = 0;
|
||||
}
|
||||
|
||||
OSMesaContext ctx = OSMesaCreateContextExt(OSMESA_RGBA, 16, 0, 0, NULL);
|
||||
OSMesaContext ctx = OSMesaCreateContextExt(OSMESA_BGRA, 16, 0, 0, NULL);
|
||||
if (!ctx) {
|
||||
printf("OSMesaCreateContextExt failed\n");
|
||||
return 1;
|
||||
|
||||
@ -11,6 +11,7 @@ function recipe_update {
|
||||
}
|
||||
|
||||
function recipe_prepare {
|
||||
rm -rf source
|
||||
mkdir source
|
||||
cp gears.c source
|
||||
}
|
||||
|
||||
@ -415,7 +415,7 @@ test(GLenum type, GLint bits, const char *filename)
|
||||
type == GL_UNSIGNED_SHORT ||
|
||||
type == GL_FLOAT);
|
||||
|
||||
ctx = OSMesaCreateContextExt(OSMESA_RGBA, z, stencil, accum, NULL );
|
||||
ctx = OSMesaCreateContextExt(OSMESA_BGRA, z, stencil, accum, NULL );
|
||||
if (!ctx) {
|
||||
printf("OSMesaCreateContextExt() failed!\n");
|
||||
return 0;
|
||||
|
||||
@ -11,6 +11,7 @@ function recipe_update {
|
||||
}
|
||||
|
||||
function recipe_prepare {
|
||||
rm -rf source
|
||||
mkdir source
|
||||
cp osdemo.c source
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user