Changeset View
Changeset View
Standalone View
Standalone View
source/blender/gpu/intern/gpu_shader.c
| Show All 30 Lines | |||||
| #include "BLI_string_utils.h" | #include "BLI_string_utils.h" | ||||
| #include "BKE_appdir.h" | #include "BKE_appdir.h" | ||||
| #include "BKE_global.h" | #include "BKE_global.h" | ||||
| #include "DNA_space_types.h" | #include "DNA_space_types.h" | ||||
| #include "GPU_extensions.h" | #include "GPU_extensions.h" | ||||
| #include "GPU_platform.h" | |||||
| #include "GPU_matrix.h" | #include "GPU_matrix.h" | ||||
| #include "GPU_shader.h" | #include "GPU_shader.h" | ||||
| #include "GPU_texture.h" | #include "GPU_texture.h" | ||||
| #include "GPU_uniformbuffer.h" | #include "GPU_uniformbuffer.h" | ||||
| #include "gpu_shader_private.h" | #include "gpu_shader_private.h" | ||||
| /* Adjust these constants as needed. */ | /* Adjust these constants as needed. */ | ||||
| ▲ Show 20 Lines • Show All 635 Lines • ▼ Show 20 Lines | |||||
| void GPU_shader_transform_feedback_disable(GPUShader *UNUSED(shader)) | void GPU_shader_transform_feedback_disable(GPUShader *UNUSED(shader)) | ||||
| { | { | ||||
| glEndTransformFeedback(); | glEndTransformFeedback(); | ||||
| } | } | ||||
| void GPU_shader_free(GPUShader *shader) | void GPU_shader_free(GPUShader *shader) | ||||
| { | { | ||||
| #if 0 /* Would be nice to have, but for now the Deferred compilation \ | #if 0 /* Would be nice to have, but for now the Deferred compilation \ | ||||
jbakker: Something happened here. will clean up | |||||
| * does not have a GPUContext. */ | * does not have a GPUContext. */ | ||||
| BLI_assert(GPU_context_active_get() != NULL); | BLI_assert(GPU_context_active_get() != NULL); | ||||
| #endif | #endif | ||||
| BLI_assert(shader); | BLI_assert(shader); | ||||
| if (shader->vertex) { | if (shader->vertex) { | ||||
| glDeleteShader(shader->vertex); | glDeleteShader(shader->vertex); | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 731 Lines • Show Last 20 Lines | |||||
Something happened here. will clean up