Commit 61bd98f
committed
Fix bufferStorage
The current packed struct is wrong, it was implemented in the order
which the flags are described in the OpenGL Spec. This is not how the
bits are laid out in memory though, in fact if you were to write true to
map_write with this implementation it would through a GL_INVALID_VALUE
error since the function does not allow setting any bits besides the
defined ones. This commit fixes the bitfield to have the correct order
and padding aswell as providing their offsets as a comment and a small
description of what each flag does.1 parent c3b5731 commit 61bd98f
1 file changed
+30
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5227 | 5227 | | |
5228 | 5228 | | |
5229 | 5229 | | |
5230 | | - | |
5231 | | - | |
5232 | | - | |
5233 | | - | |
5234 | | - | |
5235 | | - | |
5236 | | - | |
5237 | | - | |
5238 | | - | |
| 5230 | + | |
| 5231 | + | |
| 5232 | + | |
| 5233 | + | |
| 5234 | + | |
| 5235 | + | |
| 5236 | + | |
| 5237 | + | |
| 5238 | + | |
| 5239 | + | |
| 5240 | + | |
| 5241 | + | |
| 5242 | + | |
| 5243 | + | |
| 5244 | + | |
| 5245 | + | |
| 5246 | + | |
| 5247 | + | |
| 5248 | + | |
| 5249 | + | |
| 5250 | + | |
| 5251 | + | |
| 5252 | + | |
| 5253 | + | |
| 5254 | + | |
| 5255 | + | |
| 5256 | + | |
| 5257 | + | |
| 5258 | + | |
| 5259 | + | |
5239 | 5260 | | |
5240 | 5261 | | |
5241 | 5262 | | |
| |||
0 commit comments