From: Mikko Rasa Date: Wed, 17 Nov 2021 13:34:21 +0000 (+0200) Subject: Comment fixes X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=commitdiff_plain;h=e98188ff6c9bba9761b71f2a69f3be7eb89ba3da;hp=f7682c3c2e9f028cef6945ffbada66cff33585c0 Comment fixes --- 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 {