File tree 3 files changed +6
-6
lines changed
3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 3
3
4
4
namespace Graphics
5
5
{
6
+ #ifndef EMBEDDED
7
+ extern const uint32 shaderStageMap[];
8
+ #endif
6
9
/* Enum of supported shader types */
7
10
enum class ShaderType
8
11
{
Original file line number Diff line number Diff line change @@ -57,9 +57,6 @@ namespace Graphics
57
57
{
58
58
};
59
59
60
- // Defined in Shader.cpp
61
- extern uint32 shaderStageMap[];
62
-
63
60
class Material_Impl : public MaterialRes
64
61
{
65
62
public:
Original file line number Diff line number Diff line change 6
6
namespace Graphics
7
7
{
8
8
#ifdef EMBEDDED
9
- uint32 typeMap[] =
9
+ const uint32 typeMap[] =
10
10
{
11
11
GL_VERTEX_SHADER,
12
12
GL_FRAGMENT_SHADER,
13
13
};
14
14
#else
15
- uint32 typeMap[] =
15
+ const uint32 typeMap[] =
16
16
{
17
17
GL_VERTEX_SHADER,
18
18
GL_FRAGMENT_SHADER,
19
19
GL_GEOMETRY_SHADER,
20
20
};
21
- uint32 shaderStageMap[] =
21
+ const uint32 shaderStageMap[] =
22
22
{
23
23
GL_VERTEX_SHADER_BIT,
24
24
GL_FRAGMENT_SHADER_BIT,
You can’t perform that action at this time.
0 commit comments