Giter VIP home page Giter VIP logo

Comments (7)

Nairou avatar Nairou commented on July 17, 2024

I've seen this as well. I usually have Visual Studio disable that runtime check for that file, just because I don't understand the source well enough to fix the issue.

from stb.

IkerGimenez avatar IkerGimenez commented on July 17, 2024

I disabled the check and the texture ends up appearing corrupted in GPU memory. Maybe I'm doing something wrong?

from stb.

SpartanJ avatar SpartanJ commented on July 17, 2024

Probably the unpack alignment ( the textures load just fine here with stbi ).
Set the unpack alignment to 1: glPixelStorei(GL_UNPACK_ALIGNMENT,1);

from stb.

IkerGimenez avatar IkerGimenez commented on July 17, 2024

Never mind, just me being stupid. Was not assigning the uniform correctly.

from stb.

nothings avatar nothings commented on July 17, 2024

run-time check is worth fixing

from stb.

nothings avatar nothings commented on July 17, 2024

Attempted to fix every issue like this which was found in a cast that turned up with a search for "= (" or "(stbi_uc)". (Note that those searches may not have found every such cast.)

I can't actually test that the fixes work since I'm not building with the version of MSVC that has these warnings, but the fix is straightforward so I expect it to be right. However, since these warnings only turn up when you execute them, if there are more places with the same issue that didn't turn up in my searches, we'll just have to discover them piecemeal.

Pushed and released as version 1.38

from stb.

IkerGimenez avatar IkerGimenez commented on July 17, 2024

Can confirm, the issue was resolved in Visual Studio 2012. If I run into anything else I'll let you know. Thank you!

from stb.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.