diff options
| author | 2017-01-02 14:05:50 +0100 | |
|---|---|---|
| committer | 2017-01-02 14:05:50 +0100 | |
| commit | fadb547f630d377b1ff69a7ab09f852855930c56 (patch) | |
| tree | a77a08bbed897113aec7a95657fc5e0d902fc0b6 /3rdparty/bgfx/examples/19-oit/oit.cpp | |
| parent | 04faaaf7ffb422f390262e119fe50db21683a831 (diff) | |
Updated BGFX (nw)
Diffstat (limited to '3rdparty/bgfx/examples/19-oit/oit.cpp')
| -rw-r--r-- | 3rdparty/bgfx/examples/19-oit/oit.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/3rdparty/bgfx/examples/19-oit/oit.cpp b/3rdparty/bgfx/examples/19-oit/oit.cpp index 966f436eb18..22f5d8525bd 100644 --- a/3rdparty/bgfx/examples/19-oit/oit.cpp +++ b/3rdparty/bgfx/examples/19-oit/oit.cpp @@ -1,5 +1,5 @@ /* - * Copyright 2011-2016 Branimir Karadzic. All rights reserved. + * Copyright 2011-2017 Branimir Karadzic. All rights reserved. * License: https://github.com/bkaradzic/bgfx#license-bsd-2-clause */ @@ -90,7 +90,7 @@ inline void mtxProj(float* _result, float _fovy, float _aspect, float _near, flo void screenSpaceQuad(float _textureWidth, float _textureHeight, bool _originBottomLeft = false, 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); |
