Move app command state mapping to renderer gl

This commit is contained in:
2026-06-02 06:58:30 +02:00
parent 19f815e3d2
commit 3930f39b14
4 changed files with 53 additions and 11 deletions

View File

@@ -1,5 +1,15 @@
#include "pch.h"
#include "app.h"
#include "renderer_gl/opengl_capabilities.h"
namespace {
[[nodiscard]] GLint rgba8_internal_format() noexcept
{
return static_cast<GLint>(pp::renderer::gl::rgba8_internal_format());
}
}
#ifdef __ANDROID__
void displayKeyboard(bool pShow);
@@ -84,7 +94,7 @@ void App::tick(float dt)
void App::resize(float w, float h)
{
LOG("App::resize %d %d", (int)w, (int)h);
uirtt.create(w, h, -1, GL_RGBA8, true);
uirtt.create(static_cast<int>(w), static_cast<int>(h), -1, rgba8_internal_format(), true);
redraw = true;
width = w;
height = h;