One step closer towards CgD3D to work. Now something is being compiled twice...

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2501 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
XTra.KrazzY
2009-03-01 10:38:04 +00:00
parent 917fca3e70
commit 37d5360399
4 changed files with 41 additions and 92 deletions

View File

@ -25,15 +25,11 @@
#include "D3DBase.h"
#include "VertexShaderGen.h"
#include <Cg/cg.h>
#include <Cg/cgD3D9.h>
class VertexShaderCache
{
struct VSCacheEntry
{
//LPDIRECT3DVERTEXSHADER9 shader;
CGprogram shader;
LPDIRECT3DVERTEXSHADER9 shader;
int frameCount;
VSCacheEntry()
{
@ -42,11 +38,8 @@ class VertexShaderCache
}
void Destroy()
{
if (shader) {
cgD3D9UnloadProgram(shader);
cgDestroyProgram(shader);
// shader->Release();
}
if (shader)
shader->Release();
}
};
@ -59,7 +52,7 @@ public:
static void Cleanup();
static void Shutdown();
static void SetShader(u32 components);
static CGprogram CompileCgShader(const char *pstrprogram);
static LPDIRECT3DVERTEXSHADER9 CompileCgShader(const char *pstrprogram);
};
#endif // _VERTEXSHADERCACHE_H