Explorar o código

Examples: DirectX11: fixed vertex shader which breaks with VS2015 somehow (DX11 version?) (#313)

ocornut %!s(int64=10) %!d(string=hai) anos
pai
achega
77bcb7152b
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      examples/directx11_example/imgui_impl_dx11.cpp

+ 1 - 1
examples/directx11_example/imgui_impl_dx11.cpp

@@ -293,7 +293,7 @@ bool    ImGui_ImplDX11_CreateDeviceObjects()
     // Create the vertex shader
     {
         static const char* vertexShader = 
-            "cbuffer vertexBuffer : register(c0) \
+            "cbuffer vertexBuffer : register(b0) \
             {\
             float4x4 ProjectionMatrix; \
             };\