Skip to content

Commit

Permalink
Fix for Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
dfranx committed May 17, 2020
1 parent 5f3e87d commit 80415ac
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 2 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ VSProject
vsproject32
Makefile
libs/**/*.cmake
SPIRV-Tools-linkConfig.cmake
SPIRV-Tools-optConfig.cmake
SPIRV-Tools-reduceConfig.cmake
SPIRV-ToolsConfig.cmake

# Generated files
libs/**/*.tcl
Expand Down
2 changes: 2 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@
[submodule "libs/spirv-tools"]
path = libs/spirv-tools
url = https://github.com/KhronosGroup/SPIRV-Tools.git
ignore = dirty
[submodule "libs/spirv-headers"]
path = libs/spirv-headers
url = https://github.com/KhronosGroup/SPIRV-Headers
ignore = dirty
2 changes: 1 addition & 1 deletion libs/SPIRV-VM
Submodule SPIRV-VM updated 3 files
+3 −1 .gitignore
+3 −0 OPCODES.txt
+10 −2 src/ext/GLSL450.c
2 changes: 1 addition & 1 deletion src/SHADERed/UI/PixelInspectUI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ namespace ed {
spvm_image_t tex = res->image_data;

if (isCube) {
m_cubePrev.Draw((GLuint)tex->user_data);
m_cubePrev.Draw((GLuint)((uintptr_t)tex->user_data));
ImGui::Image((ImTextureID)m_cubePrev.GetTexture(), ImVec2(128.0f, 128.0f * (375.0f / 512.0f)), ImVec2(0, 1), ImVec2(1, 0));
} else
ImGui::Image((ImTextureID)tex->user_data, ImVec2(128.0f, 128.0f * (tex->height / (float)tex->width)), ImVec2(0, 1), ImVec2(1, 0));
Expand Down

0 comments on commit 80415ac

Please sign in to comment.