Replaced checkAvail* with getAvail* API.

This commit is contained in:
Branimir Karadžić
2016-12-22 16:18:44 -08:00
parent 0d93dd074d
commit 07aae82d16
19 changed files with 86 additions and 101 deletions

View File

@@ -6,6 +6,7 @@
#include <bgfx/bgfx.h>
#include <bgfx/embedded_shader.h>
#include "debugdraw.h"
#include "../bgfx_utils.h"
#include "../packrect.h"
#include <bx/fpumath.h>
@@ -1838,7 +1839,7 @@ private:
{
if (0 != m_pos)
{
if (bgfx::checkAvailTransientBuffers(m_pos, DebugVertex::ms_decl, m_indexPos) )
if (checkAvailTransientBuffers(m_pos, DebugVertex::ms_decl, m_indexPos) )
{
bgfx::TransientVertexBuffer tvb;
bgfx::allocTransientVertexBuffer(&tvb, m_pos, DebugVertex::ms_decl);
@@ -1876,7 +1877,7 @@ private:
if (0 != m_posQuad)
{
const uint32_t numIndices = m_posQuad/4*6;
if (bgfx::checkAvailTransientBuffers(m_posQuad, DebugUvVertex::ms_decl, numIndices) )
if (checkAvailTransientBuffers(m_posQuad, DebugUvVertex::ms_decl, numIndices) )
{
bgfx::TransientVertexBuffer tvb;
bgfx::allocTransientVertexBuffer(&tvb, m_posQuad, DebugUvVertex::ms_decl);