diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2018-09-11 12:34:03 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2018-09-11 12:53:56 +0300 |
commit | 6acf8642e5c464a0879cf37e3f39cd3e526a2019 (patch) | |
tree | f1ac7c45e04749a84af02fa39a7507a4cecb6e76 /source/blender/gpu/intern | |
parent | 7c64f8537f5c4766390cdca58568c07a74863c67 (diff) |
Cleanup: remove unused GPU code.
Diffstat (limited to 'source/blender/gpu/intern')
-rw-r--r-- | source/blender/gpu/intern/gpu_extensions.c | 12 | ||||
-rw-r--r-- | source/blender/gpu/intern/gpu_shader.c | 3 |
2 files changed, 0 insertions, 15 deletions
diff --git a/source/blender/gpu/intern/gpu_extensions.c b/source/blender/gpu/intern/gpu_extensions.c index 0c2f11b1f74..112618de92d 100644 --- a/source/blender/gpu/intern/gpu_extensions.c +++ b/source/blender/gpu/intern/gpu_extensions.c @@ -265,18 +265,6 @@ void gpu_extensions_exit(void) GPU_invalid_tex_free(); } -bool GPU_full_non_power_of_two_support(void) -{ - /* always supported on full GL but still relevant for OpenGL ES 2.0 where - * NPOT textures can't use mipmaps or repeat wrap mode */ - return true; -} - -bool GPU_bicubic_bump_support(void) -{ - return GLEW_VERSION_4_0 || (GLEW_ARB_texture_query_lod && GLEW_VERSION_3_0); -} - int GPU_color_depth(void) { return GG.colordepth; diff --git a/source/blender/gpu/intern/gpu_shader.c b/source/blender/gpu/intern/gpu_shader.c index 486858b9c82..67825c9cbaf 100644 --- a/source/blender/gpu/intern/gpu_shader.c +++ b/source/blender/gpu/intern/gpu_shader.c @@ -258,9 +258,6 @@ static void gpu_shader_standard_defines( else if (GPU_type_matches(GPU_DEVICE_INTEL, GPU_OS_ANY, GPU_DRIVER_ANY)) strcat(defines, "#define GPU_INTEL\n"); - if (GPU_bicubic_bump_support()) - strcat(defines, "#define BUMP_BICUBIC\n"); - #ifdef WITH_OPENSUBDIV /* TODO(sergey): Check whether we actually compiling shader for * the OpenSubdiv mesh. |