Menu

#44 Build with VS 2019 problems

1.0
closed
nobody
None
2021-01-24
2020-07-22
No

Hi,
I'm trying to build from source with VS 2019.
Default Project settings for Debug_SDL/x86
image
Platform Toolset set to v141_XP forces Windows SDK 7.0
With this setting it fails to builde with error:

main.h(6): fatal error C1083: Cannot open include file: 'd3d11_1.h': No such file or directory

When i change Platform Toolset to v141 and Windows SDK to 8.1
I can build it fine, but i get this error:
image
This error exist, because as depth buffer usage is set to RENDERTARGET_MSAA_DEPTH and buffer is created with 1 sample (no MSAA).
glBindTexture(GL_TEXTURE_2D_MULTISAMPLE, texel->texture)
Gives error.
Cool, i can easy fix it and add check if g_pplayer->m_MSAASamples > 1, but...
I end with different colors:
my build
It looks different than from VPinballX_GL.exe from current release:
current release

It looks like:
color gamma is broken
reflections are broken
* current release is blured, like upscaled from lower resoloution

I'm trying to add Dear ImGui and menu system for BAM View. I want to clean up this before i do PR.

Question: Do i have to use VS2017 and old sdk? Maybe there is something wrong with current VPVR code?

Rafal Janicki

Discussion

  • Sebastian

    Sebastian - 2021-01-24
    • status: open --> closed
     
  • Sebastian

    Sebastian - 2021-01-24

    Build environment is updated for all platforms (0.6, 0.7, x86, x64).

     

Log in to post a comment.