diff options
| author | Jules Blok <jules.blok@gmail.com> | 2014-10-29 13:16:24 +0100 |
|---|---|---|
| committer | Jules Blok <jules.blok@gmail.com> | 2014-11-23 14:24:09 +0100 |
| commit | fa32f751d37604b7af46e7d9d118aacefbc5df76 (patch) | |
| tree | 9ff5f229019213e71276f11dd5c033ffa7ad5abc /Source/Core/VideoCommon/GeometryShaderGen.cpp | |
| parent | b236c363de097ca8164c315e37dc369139a8a20c (diff) | |
ShaderGen: Handle ShaderCode objects directly.
ShaderGeneratorInterface does not have virtual function members, so we have to implement each type explicitly.
Diffstat (limited to 'Source/Core/VideoCommon/GeometryShaderGen.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/GeometryShaderGen.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/Source/Core/VideoCommon/GeometryShaderGen.cpp b/Source/Core/VideoCommon/GeometryShaderGen.cpp index e305551cd8..749929e8ea 100644 --- a/Source/Core/VideoCommon/GeometryShaderGen.cpp +++ b/Source/Core/VideoCommon/GeometryShaderGen.cpp @@ -69,11 +69,7 @@ static inline void GenerateGeometryShader(T& out, u32 components, API_TYPE ApiTy "\tfloat4 " I_STEREOPROJECTION"[8];\n" "};\n"); - ShaderCode code; - char buf[16384]; - code.SetBuffer(buf); - GenerateVSOutputStructForGS(code, ApiType); - out.Write(code.GetBuffer()); + GenerateVSOutputStruct(out, ApiType); out.Write("centroid in VS_OUTPUT v[];\n"); out.Write("centroid out VS_OUTPUT o;\n"); |
