-
Notifications
You must be signed in to change notification settings - Fork 231
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Do not redefine NOMINMAX #801
Conversation
What is the build environment in which you encountered |
@MarkCallow There's yet another header which defines |
The file you've changed is internal to libktx so should not be affected and should not affect other headers your application may be using. And, as I said, compilers usually only complain when an item is being defined to a different value than it's current value. Even then they don't complain if the current value is undefined. So I'm curious which compiler you are using. |
Visual Studio 2022. I'm including that file directly to access OpenGL texture format definitions without including full-sized actual OpenGL headers (of which I have none, because the app is using Vulkan for rendering and needs to render KTX1 textures as well as KTX2). |
Got it. So you are writing your own KTX texture loader, correct? May I ask why you chose not to use the Vulkan loader in libktx? I expect to remove |
I have a multi-API renderer. Loaded textures are agnostic of any specific API. |
Great. I would happily accept PR(s) for D3D12 and Metal loaders if you were so inclined. Thanks for this fix. |
No description provided.