mirror of
https://github.com/libretro/scummvm.git
synced 2025-03-05 17:57:14 +00:00
TINYGL: Rewrote if conditions for more clarity.
This commit is contained in:
parent
c27be840ea
commit
13698796ec
@ -62,7 +62,7 @@ void tglPresentBuffer() {
|
||||
const Graphics::DrawCall ¤tCall = **itFrame;
|
||||
const Graphics::DrawCall &previousCall = **itPrevFrame;
|
||||
|
||||
if (!(previousCall == currentCall)) {
|
||||
if (previousCall != currentCall) {
|
||||
while (itPrevFrame != endPrevFrame) {
|
||||
Graphics::DrawCall *dirtyDrawCall = *itPrevFrame;
|
||||
rectangles.push_back(DirtyRectangle(dirtyDrawCall->getDirtyRegion(), 255, 255, 255));
|
||||
@ -505,7 +505,7 @@ bool RasterizationDrawCall::operator==(const RasterizationDrawCall &other) const
|
||||
_drawTriangleBack == other._drawTriangleBack &&
|
||||
_state == other._state) {
|
||||
for (int i = 0; i < _vertexCount; i++) {
|
||||
if ((_vertex[i] == other._vertex[i]) == false) {
|
||||
if ((_vertex[i] != other._vertex[i])) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user