Commit 7c85bc77 authored by Libretro-Admin's avatar Libretro-Admin
Browse files
parent 10732bdf
......@@ -210,7 +210,7 @@ TA_context* tactx_Alloc(void)
TA_context* rv = 0;
mtx_pool.Lock();
if (ctx_pool.size())
if (!ctx_pool.empty())
{
rv = ctx_pool[ctx_pool.size()-1];
ctx_pool.pop_back();
......
......@@ -244,7 +244,7 @@ public:
}
void Cleanup() {
verify(final_opend || block->oplist.size() == 0);
verify(final_opend || block->oplist.empty());
final_opend = false;
FlushAllRegs(true);
verify(reg_alloced.empty());
......
......@@ -272,7 +272,7 @@ static void SortTriangles(int first, int count)
GenSorted(first, count, pidx_sort, vidx_sort);
//Upload to GPU if needed
if (pidx_sort.size())
if (!pidx_sort.empty())
{
//Bind and upload sorted index buffer
glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, gl.vbo.idxs2); glCheck();
......@@ -295,7 +295,7 @@ static void SortTriangles(int first, int count)
void DrawSorted(bool multipass)
{
//if any drawing commands, draw them
if (pidx_sort.size())
if (!pidx_sort.empty())
{
u32 count=pidx_sort.size();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment