]> git.tdb.fi Git - libs/gl.git/commitdiff
Comment fixes
authorMikko Rasa <tdb@tdb.fi>
Wed, 17 Nov 2021 13:34:21 +0000 (15:34 +0200)
committerMikko Rasa <tdb@tdb.fi>
Wed, 17 Nov 2021 13:48:20 +0000 (15:48 +0200)
source/core/bufferable.h
source/glsl/spirv.cpp

index 8bd3f77f021d39e2722f0b8d7e13e5f60ae2a353..53d493a0713d75a7205ede2ecfd04135902c7e15 100644 (file)
@@ -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. */
index 7f0d0b702d1ba3c75d2e3465308dc090bc83e6a0..13c58a695ab3668d9c0a605ce679f1d00565a997 100644 (file)
@@ -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
        {