d3d11: Add a missing "extern" for a variable declaration
authorMartin Storsjö <martin@martin.st>
Fri, 3 Aug 2018 20:13:10 +0000 (23:13 +0300)
committerMartin Storsjö <martin@martin.st>
Fri, 3 Aug 2018 20:13:10 +0000 (23:13 +0300)
If the "extern" is skipped, the declaration turns into a definition
of uninitialized data, which can be silently overridden by an
initialized definition. But here a plain declaration is what is
intended.

modules/video_output/win32/d3d11_shaders.h

index 72526a1..8ef7c0f 100644 (file)
@@ -72,8 +72,8 @@ typedef struct {
     FLOAT Projection[4*4];
 } VS_PROJECTION_CONST;
 
-const char* globVertexShaderFlat;
-const char* globVertexShaderProjection;
+extern const char* globVertexShaderFlat;
+extern const char* globVertexShaderProjection;
 
 /* Vertex Shader compiled sructures */
 typedef struct {