|
From: Brian P. <br...@vm...> - 2009-03-18 23:29:31
|
Liccese Joe-RMNP30 wrote:
> While I can successfully build and run the osmesa_demo.c example and
> generate an actual output I've been unsuccessful in doing so when I take
> a modified version of NeHe's lesson24 example using OSMesa. I've ensured
> that glFinsih() is called but if I actually step into the glFinish
> routine that is dispatched (copied below) I see that there is no actual
> address associated with ctx->Driver.Finish or for .Flush either (both
> contain 0x0) so the call to ctx->Driver.Finish(ctx) is never actually
> performed.
>
> void GLAPIENTRY
> _mesa_Finish(void)
> {
> GET_CURRENT_CONTEXT(ctx);
> ASSERT_OUTSIDE_BEGIN_END_AND_FLUSH(ctx);
> if (ctx->Driver.Finish) {
> ctx->Driver.Finish(ctx);
> }
> }
> This is my first intro to opengl so I'm certain I'm missing something
> obvious but have been unable to determine the cause myself. We're
> using OSMesa since we've actually ported openGL to a Freescale DSP in
> which there is no windowing system available. Our goal is to benchmark a
> few simple text and 2d renderings on this particular architecture.
>
> Any help anyone has on resolving the missing output will be greatly
> appreciated. Currently the output when using OSMesa is just a black
> background. If we modify this same code using GLUT instead of OSMesa all
> works as expected.
I don't see where your Resize() function is getting called to setup the viewport and modelview and projection matrices.
-Brian
|