GPU: Fix GLSL compilation error on legacy NVIDIA drivers
Somehow the 16K inside a string is parsed as being an integer, leading
to error messages about the `K` suffix.
```
ERROR (gpu.shader): gpu_shader_icon_multi VertShader:
|
1 | #version 430
|
| Error: C0159: invalid char 'K' in integer constant suffix
```
Fixed by changing the 16K to the actual number.
Related to #122977 With this PR blender will start, but EEVEE will render pink.
Pull Request: https://projects.blender.org/blender/blender/pulls/123071
This commit is contained in:
@@ -128,7 +128,7 @@ struct SeqStripDrawData {
|
||||
};
|
||||
BLI_STATIC_ASSERT_ALIGN(SeqStripDrawData, 16)
|
||||
BLI_STATIC_ASSERT(sizeof(SeqStripDrawData) * GPU_SEQ_STRIP_DRAW_DATA_LEN <= 16384,
|
||||
"SeqStripDrawData UBO must not exceed minspec UBO size (16K)")
|
||||
"SeqStripDrawData UBO must not exceed minspec UBO size (16384)")
|
||||
|
||||
/* VSE global data for timeline rendering. */
|
||||
struct SeqContextDrawData {
|
||||
|
||||
Reference in New Issue
Block a user