Comments (7)
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.
I disabled the check and the texture ends up appearing corrupted in GPU memory. Maybe I'm doing something wrong?
from stb.
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.
Never mind, just me being stupid. Was not assigning the uniform correctly.
from stb.
run-time check is worth fixing
from stb.
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.
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)
- problem in reading libraries HOT 1
- 16 bit PNG Support
- Array Out Of Bounds - stb_image_resize2.h HOT 12
- Out-of-bounds Memory Access in stb_image Library during GIF Image Processing
- possibly incorrect function signatures in stb_sprintf
- The output of `stbir_resize_uint8_linear` function is competely wrong HOT 3
- stb_truetype valgrind: invalid read of size 1 HOT 1
- shput never fills in "key" field HOT 7
- STBDS_FREE is used outside of STB_DS_IMPLEMENTATION causing custom implementation to be replaced by free(). HOT 1
- how to hmdel in iterate hashmap? HOT 7
- stb_image: Add support for gainmaps (`libultrahdr`) support to image loader HOT 2
- Characterizing crashes with respect to file size HOT 1
- Overflow error with gcc 14.1 and LTO HOT 18
- VS2022 stbir_resize_uint8 ERROR HOT 1
- Malloc return not checked in stbi_write_hdr_core
- sttb_image: Unused functions when STBI_NO_JPEG is defined
- stb_image_resize2: implicit declaration of function 'vld1q_f16' is invalid in C99 [-Werror,-Wimplicit-function-declaration] HOT 5
- stb_c_lexer: invalid char literal
- [stb_image] image too large check is wrong HOT 1
- [stb_image] `stbi__do_png` doesn't set number of components correctly after changing using `req_comp` HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from stb.