From b211ace935f1a29cf3aa92f9627f75a12c70f3a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Tue, 8 Sep 2020 22:26:51 +0200 Subject: [PATCH] Shaders: don't use deprecated functionality in ES builds. --- src/Magnum/Shaders/Phong.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Magnum/Shaders/Phong.cpp b/src/Magnum/Shaders/Phong.cpp index 4fb2eced0..0e7e444d4 100644 --- a/src/Magnum/Shaders/Phong.cpp +++ b/src/Magnum/Shaders/Phong.cpp @@ -258,7 +258,7 @@ Phong::Phong(const Flags flags, const UnsignedInt lightCount): _flags{flags}, _l if(flags & Flag::NormalTexture) setNormalTextureScale(1.0f); setLightPositions(Containers::Array{Containers::DirectInit, lightCount, Vector4{0.0f, 0.0f, 1.0f, 0.0f}}); - setLightColors(Containers::Array{Containers::DirectInit, lightCount, Magnum::Color3{1.0f}}); + setLightColors(Containers::Array{Containers::DirectInit, lightCount, Magnum::Color3{1.0f}}); setLightRanges(Containers::Array{Containers::DirectInit, lightCount, Constants::inf()}); /* Light position is zero by default */ setNormalMatrix({});