mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-02-18 04:53:06 +01:00
Replaced checkAvail* with getAvail* API.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user