mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-30 12:48:57 +00:00
Fix a vertex shader generation bug that crashed Super Monkey Ball. Better shader error handling. Random warning fixes.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4170 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
50593397f3
commit
1e016dd522
8 changed files with 47 additions and 61 deletions
|
@ -36,7 +36,7 @@ private:
|
|||
{
|
||||
LPDIRECT3DPIXELSHADER9 shader;
|
||||
int frameCount;
|
||||
#ifdef _DEBUG
|
||||
#if defined(_DEBUG) || defined(DEBUGFAST)
|
||||
std::string code;
|
||||
#endif
|
||||
PSCacheEntry() : shader(NULL), frameCount(0) {}
|
||||
|
@ -56,8 +56,8 @@ public:
|
|||
static void Init();
|
||||
static void Cleanup();
|
||||
static void Shutdown();
|
||||
static void SetShader(bool dstAlpha);
|
||||
#ifdef _DEBUG
|
||||
static bool SetShader(bool dstAlpha);
|
||||
#if defined(_DEBUG) || defined(DEBUGFAST)
|
||||
static std::string GetCurrentShaderCode();
|
||||
#endif
|
||||
static LPDIRECT3DPIXELSHADER9 CompileCgShader(const char *pstrprogram);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue