GPU: Missing create info when running tests
When running tests `WITH_GTESTS` and `WITH_GPU_DRAW_TESTS` the GPUShaderCreateInfo's specfically created for the tests could not be found. This failed running tests on any backend. This PR fixes this. The root cause what that the name of the compile directive was incorrect. It should have been `WITH_GTESTS` but was `WITH_GTEST`. Pull Request: https://projects.blender.org/blender/blender/pulls/131956
This commit is contained in:
@@ -739,8 +739,8 @@ if(WITH_GPU_DRAW_TESTS)
|
||||
add_definitions(-DWITH_GPU_DRAW_TESTS)
|
||||
endif()
|
||||
|
||||
if(WITH_GTEST)
|
||||
add_definitions(-DWITH_GTEST)
|
||||
if(WITH_GTESTS)
|
||||
add_definitions(-DWITH_GTESTS)
|
||||
endif()
|
||||
|
||||
blender_add_lib(bf_gpu "${SRC}" "${INC}" "${INC_SYS}" "${LIB}")
|
||||
|
||||
@@ -38,7 +38,7 @@
|
||||
#include "gpu_shader_text_info.hh"
|
||||
#include "gpu_srgb_to_framebuffer_space_info.hh"
|
||||
|
||||
#ifdef WITH_GTEST
|
||||
#ifdef WITH_GTESTS
|
||||
# ifdef WITH_GPU_DRAW_TESTS
|
||||
# include "gpu_shader_test_info.hh"
|
||||
# endif
|
||||
|
||||
Reference in New Issue
Block a user