Move texture defaults behind renderer gl

This commit is contained in:
2026-06-02 08:51:34 +02:00
parent 8a92bc973b
commit a12a3454c4
9 changed files with 118 additions and 10 deletions

View File

@@ -236,6 +236,24 @@ RTT RTT::clone() const noexcept
return dup;
}
bool RTT::create(int width, int height)
{
return create(
width,
height,
-1,
static_cast<GLint>(pp::renderer::gl::rgba8_internal_format()));
}
bool RTT::create(int width, int height, int tex)
{
return create(
width,
height,
tex,
static_cast<GLint>(pp::renderer::gl::rgba8_internal_format()));
}
bool RTT::create(int width, int height, int tex/* = -1*/, GLint internal_format, bool depth_buffer /*= false*/)
{
GLenum status = 0;