mirror of
https://github.com/korenkonder/ReDIVA.git
synced 2026-10-03 20:28:10 +03:00
RenderTexture: Removed unused function
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user