Switch D3D9 too to the glsl shader generator

This commit is contained in:
Henrik Rydgård
2020-10-31 00:19:20 +01:00
parent cf1a5e2c67
commit c311eeaf7d
3 changed files with 10 additions and 6 deletions
+2 -1
View File
@@ -30,12 +30,13 @@ LPD3DBLOB CompileShaderToByteCodeD3D9(const char *code, const char *target, std:
&pErrorMsg);
if (pErrorMsg) {
*errorMessage = (CHAR *)pErrorMsg->GetBufferPointer();
*errorMessage = std::string((CHAR *)pErrorMsg->GetBufferPointer());
OutputDebugStringUTF8(LineNumberString(std::string(code)).c_str());
OutputDebugStringUTF8(errorMessage->c_str());
pErrorMsg->Release();
pShaderCode = nullptr;
} else if (FAILED(hr)) {
*errorMessage = GetStringErrorMsg(hr);
if (pShaderCode) {