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:
Jeroen Bakker
2024-12-16 09:58:42 +01:00
parent 86e3adc751
commit 075cc13119
2 changed files with 3 additions and 3 deletions

View File

@@ -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}")

View File

@@ -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