[Bug 75061] bug in clearing color buffer

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Comment # 13 on bug 75061 from
If the program called MapBufferRange(MAP_INVALIDATE_BUFFER_BIT) instead of
BufferData, I think it would be okay to crash:

>From GL 4.4 spec:

"MAP_INVALIDATE_BUFFER_BIT indicates that the previous contents of the entire
buffer may be discarded. Data within the entire buffer are undefined with the
exception of subsequently written data. No GL error is generated if subsequent
GL operations access unwritten data, but the result is undefined and system
errors (possibly including program termination) may occur."

In other words, no context should access the buffer until UnmapBuffer() is
complete, because there may be unwritten data.


You are receiving this mail because:
_______________________________________________
dri-devel mailing list
dri-devel@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/dri-devel

[Index of Archives]     [Linux DRI Users]     [Linux Intel Graphics]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux