forked from bartvdbraak/blender
remove ARB_texture_gather from bicubic bump map dependencies. It will be needed when/if monochrome images are supported
This commit is contained in:
parent
cd476ee531
commit
b4df2658de
@ -653,7 +653,7 @@ static char *code_generate_vertex(ListBase *nodes)
|
|||||||
|
|
||||||
int GPU_bicubic_bump_support(void)
|
int GPU_bicubic_bump_support(void)
|
||||||
{
|
{
|
||||||
return GLEW_ARB_texture_gather && GLEW_ARB_texture_query_lod && GLEW_VERSION_3_0;
|
return GLEW_ARB_texture_query_lod && GLEW_VERSION_3_0;
|
||||||
}
|
}
|
||||||
|
|
||||||
void GPU_code_generate_glsl_lib(void)
|
void GPU_code_generate_glsl_lib(void)
|
||||||
@ -669,7 +669,6 @@ void GPU_code_generate_glsl_lib(void)
|
|||||||
if(GPU_bicubic_bump_support()){
|
if(GPU_bicubic_bump_support()){
|
||||||
BLI_dynstr_append(ds, "/* These are needed for high quality bump mapping */\n"
|
BLI_dynstr_append(ds, "/* These are needed for high quality bump mapping */\n"
|
||||||
"#version 130\n"
|
"#version 130\n"
|
||||||
"#extension GL_ARB_texture_gather: enable\n"
|
|
||||||
"#extension GL_ARB_texture_query_lod: enable\n"
|
"#extension GL_ARB_texture_query_lod: enable\n"
|
||||||
"#define BUMP_BICUBIC\n");
|
"#define BUMP_BICUBIC\n");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user