Fix color channels when using osmesa

This commit is contained in:
Jeremy Soller 2018-12-10 15:50:30 -07:00
parent e6285e3c28
commit a0401c41c6
No known key found for this signature in database
GPG Key ID: E988B49EE78A7FB1
4 changed files with 4 additions and 2 deletions

View File

@ -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;

View File

@ -11,6 +11,7 @@ function recipe_update {
}
function recipe_prepare {
rm -rf source
mkdir source
cp gears.c source
}

View File

@ -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;

View File

@ -11,6 +11,7 @@ function recipe_update {
}
function recipe_prepare {
rm -rf source
mkdir source
cp osdemo.c source
}