- Joined
- Apr 6, 2009
- Messages
- 1,873
- Reaction score
- 384
I just now decided to deal with something that I simply hadn't gotten around to yet and found that the answer was amazingly simple.
If you've ever seen either of the following errors, then I'm sure you were annoyed by what it's saying:
1. Due to insufficient texture memory, the quality of the texture will be lowered.
2. Due to insufficient texture memory, the shadow function will not be applied.
The function that checks your video memory returns a UINT type, but the value is stored in an INT variable before it checks things with it. The actual value is getting chopped down to the max size of an INT. Simply changing the variable to UINT type has fixed it.
Can you believe how amazingly simple that problem is? You'd think the coders that can create such complicated coding in the rest of the source could fix such a simple problem.
Discuss: What other stupid things have you seen in the source files?
If you've ever seen either of the following errors, then I'm sure you were annoyed by what it's saying:
1. Due to insufficient texture memory, the quality of the texture will be lowered.
2. Due to insufficient texture memory, the shadow function will not be applied.
The function that checks your video memory returns a UINT type, but the value is stored in an INT variable before it checks things with it. The actual value is getting chopped down to the max size of an INT. Simply changing the variable to UINT type has fixed it.
Can you believe how amazingly simple that problem is? You'd think the coders that can create such complicated coding in the rest of the source could fix such a simple problem.
Discuss: What other stupid things have you seen in the source files?