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

@@ -1057,7 +1057,7 @@ bgfx::VertexDecl PosColorTexCoord0Vertex::ms_decl;
void screenSpaceQuad(float _textureWidth, float _textureHeight, bool _originBottomLeft = true, float _width = 1.0f, float _height = 1.0f)
{
if (bgfx::checkAvailTransientVertexBuffer(3, PosColorTexCoord0Vertex::ms_decl) )
if (3 == bgfx::getAvailTransientVertexBuffer(3, PosColorTexCoord0Vertex::ms_decl) )
{
bgfx::TransientVertexBuffer vb;
bgfx::allocTransientVertexBuffer(&vb, 3, PosColorTexCoord0Vertex::ms_decl);
@@ -2691,7 +2691,7 @@ int _main_(int _argc, char** _argv)
// Craft stencil mask for point light shadow map packing.
if(LightType::PointLight == settings.m_lightType && settings.m_stencilPack)
{
if (bgfx::checkAvailTransientVertexBuffer(6, posDecl) )
if (6 == bgfx::getAvailTransientVertexBuffer(6, posDecl) )
{
struct Pos
{