mirror of
https://github.com/hrydgard/ppsspp.git
synced 2024-11-23 13:30:02 +00:00
Minor D3D9 fixes
This commit is contained in:
parent
b7d674411e
commit
8d70fd269e
@ -7,6 +7,8 @@
|
||||
#include "Common/GPU/D3D9/D3D9ShaderCompiler.h"
|
||||
#include "Common/CommonFuncs.h"
|
||||
#include "Common/SysError.h"
|
||||
#include "Common/Log.h"
|
||||
#include "Common/StringUtils.h"
|
||||
|
||||
struct ID3DXConstantTable;
|
||||
|
||||
@ -29,6 +31,10 @@ LPD3DBLOB CompileShaderToByteCodeD3D9(const char *code, const char *target, std:
|
||||
|
||||
if (pErrorMsg) {
|
||||
*errorMessage = (CHAR *)pErrorMsg->GetBufferPointer();
|
||||
|
||||
OutputDebugStringUTF8(LineNumberString(std::string(code)).c_str());
|
||||
OutputDebugStringUTF8(errorMessage->c_str());
|
||||
|
||||
pErrorMsg->Release();
|
||||
} else if (FAILED(hr)) {
|
||||
*errorMessage = GetStringErrorMsg(hr);
|
||||
|
@ -51,7 +51,7 @@ static const char *vscode =
|
||||
"struct VS_IN {\n"
|
||||
" float4 ObjPos : POSITION;\n"
|
||||
" float2 Uv : TEXCOORD0;\n"
|
||||
"};"
|
||||
"};\n"
|
||||
"struct VS_OUT {\n"
|
||||
" float2 Uv : TEXCOORD0;\n"
|
||||
" float4 ProjPos : SV_Position;\n"
|
||||
|
@ -52,7 +52,7 @@ static const char *vscode = R"(
|
||||
struct VS_IN {
|
||||
float4 ObjPos : POSITION;
|
||||
float2 Uv : TEXCOORD0;
|
||||
};"
|
||||
};
|
||||
struct VS_OUT {
|
||||
float4 ProjPos : POSITION;
|
||||
float2 Uv : TEXCOORD0;
|
||||
|
Loading…
Reference in New Issue
Block a user