forked from blender/blender
Hydra tasks refactor #73
@ -257,7 +257,7 @@ void GPURenderTaskDelegate::bind()
|
||||
|
||||
void GPURenderTaskDelegate::unbind()
|
||||
{
|
||||
//glDeleteVertexArrays(1, &VAO_);
|
||||
glDeleteVertexArrays(1, &VAO_);
|
||||
GPU_framebuffer_free(framebuffer_);
|
||||
GPU_texture_free(tex_color_);
|
||||
GPU_texture_free(tex_depth_);
|
||||
|
@ -7,12 +7,12 @@
|
||||
|
||||
#include "DNA_vec_types.h" /* this include must be before BKE_camera.h due to "rctf" type */
|
||||
|
||||
#include "DNA_camera_types.h"
|
||||
#include "DNA_screen_types.h"
|
||||
#include "BKE_camera.h"
|
||||
#include "BLI_math_matrix.h"
|
||||
#include "BLI_timecode.h"
|
||||
#include "DEG_depsgraph_query.h"
|
||||
#include "DNA_camera_types.h"
|
||||
#include "DNA_screen_types.h"
|
||||
#include "GPU_matrix.h"
|
||||
#include "PIL_time.h"
|
||||
|
||||
@ -164,7 +164,7 @@ void DrawTexture::write_data(int width, int height, const void *data)
|
||||
return;
|
||||
}
|
||||
|
||||
if (texture_ ) {
|
||||
if (texture_) {
|
||||
GPU_texture_free(texture_);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user