RenderTexture: Removed unused function

This commit is contained in:
korenkonder
2023-11-27 14:37:06 +03:00
parent 36116d41fc
commit 2043023a01
2 changed files with 0 additions and 10 deletions
-9
View File
@@ -38,15 +38,6 @@ int32_t RenderTexture::Bind(int32_t index) {
return 0;
}
void RenderTexture::Draw(bool depth) {
gl_state_active_bind_texture_2d(0, color_texture->tex);
if (depth && depth_texture->tex)
gl_state_active_bind_texture_2d(1, depth_texture->tex);
gl_state_bind_vertex_array(render_texture_vao);
glDrawArrays(GL_TRIANGLE_STRIP, 0, 4);
gl_state_bind_vertex_array(0);
}
void RenderTexture::Free() {
if (depth_texture) {
texture_free(depth_texture);
-1
View File
@@ -22,7 +22,6 @@ struct RenderTexture {
~RenderTexture();
int32_t Bind(int32_t index = 0);
void Draw(bool depth = false);
void Free();
int32_t Init(int32_t width, int32_t height,
int32_t max_level, GLenum color_format, GLenum depth_format);