Fix: Build error on windows.

External symbols in C files need
to be marked as such otherwise
the linker will not find them.
This commit is contained in:
Ray molenkamp 2021-11-02 07:43:44 -06:00
parent e64d4d0200
commit a7e92843f7
1 changed files with 2 additions and 1 deletions

View File

@ -29,12 +29,14 @@
#include "image_engine.h"
#include "image_private.hh"
extern "C" {
extern char datatoc_common_colormanagement_lib_glsl[];
extern char datatoc_common_globals_lib_glsl[];
extern char datatoc_common_view_lib_glsl[];
extern char datatoc_engine_image_frag_glsl[];
extern char datatoc_engine_image_vert_glsl[];
}
namespace blender::draw::image_engine {
@ -84,4 +86,3 @@ void IMAGE_shader_free()
}
} // namespace blender::draw::image_engine