Derek Leach
|
Re: PdCreateOffscreenContextGF() questions
|
Derek Leach
06/10/2009 9:09 AM
post31330
|
Re: PdCreateOffscreenContextGF() questions
> Documentation ( http://www.qnx.com/developers/docs/6.4.1/photon/lib_ref/pd/
> pdcreateoffscreencontextgf.html ) says:
>
> "If there isn't enough space in video RAM to create the offscreen context, the
> behavior of this function depends on the driver; most drivers allocate space
> in system memory instead (if none of SYS_ONLY, 2D_WRITABLE, or 2D_READABLE are
> set in flags)."
>
> Is it true ? Does this function creates a clone of GF surface in memory ? Or
> it just binds GF surface for usage by Photon API without any video memory
> allocation, as mentioned in the documentation before this quotation ?
>
> What will be If I call PhDCRelease() for offscreen context created by
> PdCreateOffscreenContextGF() function ? As far as I understand it must destroy
> PdOffscreenContext_t structure (handle), but GF surface will not be destroyed
> , is it right ?
It is early in the morning, but I think I understand the code ... io-graphics will call gf_surface_free(), but io-
display will not release the surface unless the reference count has been reduced to 1, so there should be no issue.
Kind Regards,
-Derek
|
|
|