git.ucc.asn.au
/
ipdf
/
code.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix an intel LG warning by orphaning text memory
[ipdf/code.git]
/
src
/
graphicsbuffer.cpp
diff --git
a/src/graphicsbuffer.cpp
b/src/graphicsbuffer.cpp
index
750fc8b
..
37d9b12
100644
(file)
--- a/
src/graphicsbuffer.cpp
+++ b/
src/graphicsbuffer.cpp
@@
-100,6
+100,11
@@
void GraphicsBuffer::SetUsage(GraphicsBuffer::BufferUsage bufUsage)
void GraphicsBuffer::Invalidate()
{
m_invalidated = true;
void GraphicsBuffer::Invalidate()
{
m_invalidated = true;
+ if (!m_buffer_shape_dirty)
+ {
+ // Orphan the block of memory we're pointing to.
+ Upload(m_buffer_size, nullptr);
+ }
// Apparently not supported.
//glInvalidateBufferData(m_buffer_handle);
}
// Apparently not supported.
//glInvalidateBufferData(m_buffer_handle);
}
UCC
git Repository :: git.ucc.asn.au