X Tutup
Skip to content

FREESCAPE: Refactor TinyGL's clear method#6404

Merged
lephilousophe merged 1 commit intoscummvm:masterfrom
cmd05:refactor-tinygl-clear
Jan 16, 2025
Merged

FREESCAPE: Refactor TinyGL's clear method#6404
lephilousophe merged 1 commit intoscummvm:masterfrom
cmd05:refactor-tinygl-clear

Conversation

@cmd05
Copy link
Contributor

@cmd05 cmd05 commented Jan 15, 2025

This commit simplifies FREESCAPE engine's TinyGLRenderer::clear method. Currently It is using redundant operations to temporarily set a larger viewport, draw a quad of the original viewport size, and then resets the viewport to the original size. Instead we can directly draw a quad of the original viewport's size.

Requesting review @neuromancer

@lephilousophe
Copy link
Member

Thank you!
Merging per request of @neuromancer.

Instead of resizing the viewport and drawing a quad, directly draw a viewport sized quad.
@lephilousophe lephilousophe merged commit 16fb34f into scummvm:master Jan 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

X Tutup