Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Libretro
flycast
Commits
7c85bc77
Commit
7c85bc77
authored
Apr 11, 2021
by
Libretro-Admin
Browse files
Backport
https://github.com/flyinghead/flycast/commit/092ee6d8a5c173ac08cde603c94d70c848585fc8
parent
10732bdf
Changes
3
Hide whitespace changes
Inline
Side-by-side
core/hw/pvr/ta_ctx.cpp
View file @
7c85bc77
...
...
@@ -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
();
...
...
core/hw/sh4/dyna/ssa_regalloc.h
View file @
7c85bc77
...
...
@@ -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
());
...
...
core/rend/gles/gldraw.cpp
View file @
7c85bc77
...
...
@@ -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
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment