Skip to content

Commit 5ddbe2d

Browse files
committed
Added another vao-ism
1 parent b61bae9 commit 5ddbe2d

File tree

1 file changed

+1
-0
lines changed
  • blog/2024/2024-11-01-my-screen-is-black

1 file changed

+1
-0
lines changed

blog/2024/2024-11-01-my-screen-is-black/index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ Vertex colors might just be black. If it wasn't intentional, check the contents
110110
- make sure the gl state between passes is the same, face winding, cullmode, etc. See Appending A.3 in the gl spec for more clues about invariance.
111111
- check winding order and cullmode, you might be looking at the wrong side of your faces
112112
- you check renderdoc and wonder why the vertex list contains the same (perhaps even first element) only, for all vertices. Make sure your `glDrawElements(..., ..., GL_UNSIGNED_INT, ...)` or whatever datatype your indexbuffer consists of matches that parameter
113+
- Perhaps you are trying to read an int/uint or long/ulong value from your vertex attribute. Get some glasses and double check that you called the right `glVertexAttrib`**`X`**`Pointer` when setting up your VAO.
113114

114115
All these things can be checked with a graphics debugger of your choice.
115116

0 commit comments

Comments
 (0)