Advertisement Jump to content
  • Advertisement


  • Content Count

  • Joined

  • Last visited

Community Reputation

124 Neutral

About Hubis

  • Rank
  1. Unfortunately, there's no real easy way to make this work -- there's a good reason only Visual Studio 2008 samples are included! That being said, here are my observations based on the problems you describe. If you search for "WinMain", you'll find the entrypoint for the DiffuseGlobalIllumination sample in Lighting.cpp. That file should have everything you would be looking for from a "main.cpp". [/quote] How did you attempt to update this project? I did an automated update into Visual Studio 2012 and did not get any of these errors.If possible, try to import the entire base solution file, rather than project-by-project. If you're able to work around that, you may run into problems where the build fails due to HLSL or FX files not "compiling". This stage is actually not necessary, and is just included to validate the shaders before trying to run the samples and having them crash in the executable. You can fix that by simply selecting all the HLSL and FX files in your project, right clicking, and selecting "Exclude from Project". They will no longer go through that pre-processing step. Finally, I've noticed some samples seem to fail to build due to macro redefinition warnings being treated as errors. These warnings stem from macros in DXGITYPE.H (part of the DirectX SDK) being re-defined in WINERROR.H, which is part of the Windows Development Kit v8.0. For a quick-and-dirty workaround, right click the project and open its properties, go to "C++ > General" and change "Treat Warnings As Error" to "No (/WX -)". If you follow those steps, you should be able to build and run any of the samples included successfully. There is no compatibility mode that I am aware of. Unfortunately, the SDK only officially supports Visual Studio 2008, largely because of the compatibility issues you've run across. On the plus side, you can now get Visual Studio 2008 Express Edition for free from Microsoft [ ] which should be sufficient to build these samples, if all else fails. It's obviously not ideal, but it might be the easiest way if you just want to modify the code and see how it runs.
  2. For some reason, I get an INVALID_OPERATION error when I make that call. According to the spec, the function call will generate an error in the following cases: GL_INVALID_VALUE is generated if program is neither 0 nor a value generated by OpenGL. GL_INVALID_OPERATION is generated if program is not a program object. GL_INVALID_OPERATION is generated if program could not be made part of current state. GL_INVALID_OPERATION is generated if glUseProgram is executed between the execution of glBegin and the corresponding execution of glEnd. There are no glBegin/glEnd calls in my program at all (using glDrawElements), and the first 2 don't seem like they apply so all I am left with is case 3 -- "Program could not be made part of the current state". Anyone have any idea what could cause that?
  • Advertisement

Important Information

By using, you agree to our community Guidelines, Terms of Use, and Privacy Policy. is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!