Mercurial > octave
diff libinterp/dldfcn/__osmesa_print__.cc @ 19922:a0ec61ec0f73
__osmesa_print__.cc: Use GLsizei in call to OSMesaCreateContextExt to match prototype.
* __osmesa_print__.cc: Use GLsizei in call to OSMesaCreateContextExt to match
prototype.
author | Rik <rik@octave.org> |
---|---|
date | Mon, 09 Mar 2015 08:30:25 -0700 |
parents | f48e650a68b5 |
children | f1b67f6e6e45 |
line wrap: on
line diff
--- a/libinterp/dldfcn/__osmesa_print__.cc Sun Mar 08 12:55:21 2015 -0700 +++ b/libinterp/dldfcn/__osmesa_print__.cc Mon Mar 09 08:30:25 2015 -0700 @@ -129,8 +129,8 @@ bool internal = true; Matrix bb = fp.get_boundingbox (internal); - int Width = bb(2); - int Height = bb(3); + GLsizei Width = static_cast<GLsizei> (bb(2)); + GLsizei Height = static_cast<GLsizei> (bb(3)); // Create an RGBA-mode context, specify Z=16, stencil=0, accum=0 sizes OSMesaContext ctx = OSMesaCreateContextExt (OSMESA_RGBA, 16, 0, 0, NULL);