mirror of https://github.com/AxioDL/metaforce.git
Update athena, minor buffer pool changes
This commit is contained in:
parent
4a7b47200a
commit
8469ee8fac
|
@ -1 +1 @@
|
|||
Subproject commit fd84808762fcae588d50d9522e50a43c90da41d2
|
||||
Subproject commit cecbcffd96b615dfe7d8cf97827151cd82d92e58
|
|
@ -67,9 +67,11 @@ class UniformBufferPool
|
|||
|
||||
void updateBuffer()
|
||||
{
|
||||
if (buffer)
|
||||
if (cpuBuffer)
|
||||
{
|
||||
buffer->unmap();
|
||||
cpuBuffer = nullptr;
|
||||
}
|
||||
dirty = false;
|
||||
}
|
||||
|
||||
|
@ -84,6 +86,11 @@ class UniformBufferPool
|
|||
{
|
||||
if (useCount.fetch_sub(1) == 1)
|
||||
{
|
||||
if (cpuBuffer)
|
||||
{
|
||||
buffer->unmap();
|
||||
cpuBuffer = nullptr;
|
||||
}
|
||||
pool.m_token.deletePoolBuffer(buffer);
|
||||
buffer = nullptr;
|
||||
}
|
||||
|
|
|
@ -67,9 +67,11 @@ class VertexBufferPool
|
|||
|
||||
void updateBuffer()
|
||||
{
|
||||
if (buffer)
|
||||
if (cpuBuffer)
|
||||
{
|
||||
buffer->unmap();
|
||||
cpuBuffer = nullptr;
|
||||
}
|
||||
dirty = false;
|
||||
}
|
||||
|
||||
|
@ -84,6 +86,11 @@ class VertexBufferPool
|
|||
{
|
||||
if (useCount.fetch_sub(1) == 1)
|
||||
{
|
||||
if (cpuBuffer)
|
||||
{
|
||||
buffer->unmap();
|
||||
cpuBuffer = nullptr;
|
||||
}
|
||||
pool.m_token.deletePoolBuffer(buffer);
|
||||
buffer = nullptr;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue