diff options
| author | Lioncash <mathew1800@gmail.com> | 2015-12-26 16:00:23 -0500 |
|---|---|---|
| committer | Lioncash <mathew1800@gmail.com> | 2015-12-26 17:01:54 -0500 |
| commit | 8ce3a4aa7014c378d4121979f3fd10b9886d38bc (patch) | |
| tree | 2b5221c8457b0ce489f165cb4cc926901ad32705 /Source/Core/VideoCommon/GeometryShaderGen.cpp | |
| parent | be8410dcade41f4e1d69cbdbfc46dfce9635287f (diff) | |
ShaderGeneration: Get rid of static buffers
Diffstat (limited to 'Source/Core/VideoCommon/GeometryShaderGen.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/GeometryShaderGen.cpp | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/Source/Core/VideoCommon/GeometryShaderGen.cpp b/Source/Core/VideoCommon/GeometryShaderGen.cpp index bf054464c2..5bb1c4906c 100644 --- a/Source/Core/VideoCommon/GeometryShaderGen.cpp +++ b/Source/Core/VideoCommon/GeometryShaderGen.cpp @@ -7,10 +7,8 @@ #include "VideoCommon/BPMemory.h" #include "VideoCommon/GeometryShaderGen.h" #include "VideoCommon/LightingShaderGen.h" -#include "VideoCommon/VertexShaderGen.h" #include "VideoCommon/VideoConfig.h" -static char text[16384]; static const char* primitives_ogl[] = { @@ -39,12 +37,6 @@ static inline T GenerateGeometryShader(u32 primitive_type, API_TYPE ApiType) if (uid_data == nullptr) uid_data = &dummy_data; - out.SetBuffer(text); - const bool is_writing_shadercode = (out.GetBuffer() != nullptr); - - if (is_writing_shadercode) - text[sizeof(text) - 1] = 0x7C; // canary - uid_data->primitive_type = primitive_type; const unsigned int vertex_in = primitive_type + 1; unsigned int vertex_out = primitive_type == PRIMITIVE_TRIANGLES ? 3 : 4; @@ -288,12 +280,6 @@ static inline T GenerateGeometryShader(u32 primitive_type, API_TYPE ApiType) out.Write("}\n"); - if (is_writing_shadercode) - { - if (text[sizeof(text) - 1] != 0x7C) - PanicAlert("GeometryShader generator - buffer too small, canary has been eaten!"); - } - return out; } |
