OSDN Git Service

Fix C++11 strict string literal const correctness.
authorNicolas Capens <capn@google.com>
Mon, 20 Mar 2017 15:29:52 +0000 (11:29 -0400)
committerNicolas Capens <capn@google.com>
Mon, 20 Mar 2017 18:39:43 +0000 (18:39 +0000)
commit3eabac0a931ed6e31d1a043860caf336fecf09aa
treec4a1852bec5e13791c1f34a15a07896b59afcb39
parentc06d11cde34d3ae5fa4564dc255e47a212037e1f
Fix C++11 strict string literal const correctness.

String literals are const in C++11, and should only be assigned to
const pointers.

Bug swiftshader:33

Change-Id: Iefe0a1c06d58dffb69d7fbe199a2f0aa8bf3bcb1
Reviewed-on: https://swiftshader-review.googlesource.com/8990
Tested-by: Nicolas Capens <capn@google.com>
Reviewed-by: Alexis Hétu <sugoi@google.com>
src/OpenGL/libGL/Shader.cpp
tests/OGLSimpleCube/OGLSimpleCube.cpp