From cca84131dfc7c4a7b959c2aa2cabb37c5d3c8776 Mon Sep 17 00:00:00 2001 From: rdb Date: Sun, 6 Sep 2020 09:19:51 +0200 Subject: [PATCH] gles2gsg: squelch warning about missing #version line in shader --- panda/src/glstuff/glGraphicsStateGuardian_src.cxx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/panda/src/glstuff/glGraphicsStateGuardian_src.cxx b/panda/src/glstuff/glGraphicsStateGuardian_src.cxx index 28297ba464..f6c795636d 100644 --- a/panda/src/glstuff/glGraphicsStateGuardian_src.cxx +++ b/panda/src/glstuff/glGraphicsStateGuardian_src.cxx @@ -170,6 +170,7 @@ static const string default_vshader = "out vec2 texcoord;\n" "out vec4 color;\n" #else + "#version 100\n" "precision mediump float;\n" "attribute vec4 p3d_Vertex;\n" "attribute vec4 p3d_Color;\n" @@ -240,6 +241,7 @@ static const string default_fshader = "uniform sampler2D p3d_Texture0;\n" "uniform vec4 p3d_TexAlphaOnly;\n" #else + "#version 100\n" "precision mediump float;\n" "varying vec2 texcoord;\n" "varying lowp vec4 color;\n"