win32: Fix a couple of standards problems.

This commit is contained in:
BearOso 2023-03-07 13:43:02 -06:00
parent 1b10ca7ab0
commit b258636054
2 changed files with 3 additions and 3 deletions

View File

@ -430,7 +430,7 @@ void CD3DCG::Render(LPDIRECT3DTEXTURE9 &origTex, float2 textureSize,
pDevice->SetPixelShader(NULL);
}
static D3DMATRIX matrix_mul(D3DMATRIX& mat1, D3DMATRIX& mat2)
static D3DMATRIX matrix_mul(D3DMATRIX mat1, D3DMATRIX mat2)
{
D3DMATRIX out;
for (auto y = 0; y < 4; y++)
@ -448,7 +448,7 @@ static D3DMATRIX matrix_mul(D3DMATRIX& mat1, D3DMATRIX& mat2)
return out;
}
static D3DMATRIX matrix_transpose(D3DMATRIX& mat)
static D3DMATRIX matrix_transpose(D3DMATRIX mat)
{
D3DMATRIX out;
for (auto y = 0; y < 4; y++)

View File

@ -27,7 +27,7 @@ bool CVulkan::Initialize(HWND hWnd)
if (GUI.shaderEnabled && GUI.OGLshaderFileName && GUI.OGLshaderFileName[0])
{
shaderchain = std::make_unique<Vulkan::ShaderChain>(context.get());
std::string shaderstring = _tToChar(GUI.OGLshaderFileName);
std::string shaderstring = std::string(_tToChar(GUI.OGLshaderFileName));
if (!shaderchain->load_shader_preset(shaderstring))
{
shaderchain.reset();