(!1711) document that ScreenRec->DestroyPixmap() shouldn't be called directly
Direct calls to ScreenRec->DestroyPixmap() is fragile and blocks cleaning up the wrapping jungle, so use the proper dix function instead. While this function originally wasn't made for that purpose (and so we have an useless parameter here, and the naming isn't entirely correct), it's the best effort we have right now, without breaking existing API: it's already exported since long time, so drivers can be easily converted and still work with both new and older Xserver ABI versions. Retrospectively, this already should have been done 20 years ago. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
parent
e271e6261d
commit
52e8e49def
|
@ -3057,6 +3057,9 @@ must deallocate the PixmapRec and all attached devPrivate blocks.
|
|||
If successful, it returns TRUE.
|
||||
See Xserver/fb/fbpixmap.c for the sample server implementation.</para>
|
||||
<para>
|
||||
Consumers should never ever call that proc directly, but call dixDestroyPixmap() instead.
|
||||
</para>
|
||||
<para>
|
||||
<blockquote><programlisting>
|
||||
|
||||
Bool
|
||||
|
|
Loading…
Reference in New Issue