From e98188ff6c9bba9761b71f2a69f3be7eb89ba3da Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Wed, 17 Nov 2021 15:34:21 +0200 Subject: [PATCH] Comment fixes --- source/core/bufferable.h | 2 +- source/glsl/spirv.cpp | 5 ----- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/source/core/bufferable.h b/source/core/bufferable.h index 8bd3f77f..53d493a0 100644 --- a/source/core/bufferable.h +++ b/source/core/bufferable.h @@ -54,7 +54,7 @@ public: /** Sets the buffer to use. If prev is not null, it must use the same buffer, and this object is inserted after it. - Date is not uploaded immediately, but only when refresh() is called. */ + Data is not uploaded immediately, but only when refresh() is called. */ void use_buffer(Buffer *, Bufferable *prev = 0); /** Sets the buffer for the entire chain of objects. */ diff --git a/source/glsl/spirv.cpp b/source/glsl/spirv.cpp index 7f0d0b70..13c58a69 100644 --- a/source/glsl/spirv.cpp +++ b/source/glsl/spirv.cpp @@ -1609,11 +1609,6 @@ void SpirVGenerator::visit(VariableDeclaration &var) writer.write_op_decorate(var_id, DECO_SPEC_ID, spec_id); *spec_var_id = var_id; } - - /* It's unclear what should be done if a specialization constant is - initialized with anything other than a literal. GLSL doesn't seem to - prohibit that but SPIR-V says OpSpecConstantOp can't be updated via - specialization. */ } else { -- 2.45.2