|
From: Daniele C. <dca...@in...> - 2007-09-19 08:30:03
|
James Walker ha scritto: > Daniele Cavallini wrote: > >> I used OpenGL Extensions Viewer for test my video card and in report are >> present GL_EXT_framebuffer_object. >> I must control other extension? >> > > gldrawcontext_fbo_new requires that the OpenGL version is 1.2 or later, > and GL_EXT_framebuffer_object. > It seem OK > >> For to be sure to render offscreen after render onscreen I get >> drawcontext with Q3View_GetDrawContext and I use it for master draw Context, >> but Q3Object_GetProperty with KQ3DrawContextPropertyGLContext is not >> success. >> > > I'm not sure I understand you... you called Q3View_GetDrawContext on a > view that has been rendered? > > exactly > If I understand correctly, since you cannot debug Quesa, you are adding > logging statements to Quesa. I suggest that you add a log statement to > GLDrawContext_New where kQ3DrawContextPropertyGLContext is set, and > write out the value of theDrawContext. Also write out the value of > masterDrawContext in gldrawcontext_fbo_new. > I add the logging statements like you suggest. I obtain: Start view with render on video /When pass in GLDrawContext_New theDrawContext is 02344c98 / Call render in the pixmap drawcontext /When pass in gldrawcontext_fbo_new (//ofcourse after call to Q3Object_GetPoperty(...KQ3DrawContextPropertyAcceleretedOffscreen...))// masterDrawContext 02344c98. /After I recreate a window on screen with a new draw context / /For create the bitmap after render I use Q3View_GetDrawContext and Q3PixmapDrawContext_GetPixmap maybe my problem here? |