mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 19:07:34 +00:00
LibGL: Correctly normalize different vertex attribute type pointers
According to the OpenGL 2.0 spec § 2.8, the data for each attribute type pointer is normalized according to the type. The only exception to this is `glVertexAttribPointer` which accepts a `normalized` parameter, but we have not yet implemented that API.
This commit is contained in:
parent
00b21fba57
commit
91cec51b99
3 changed files with 15 additions and 15 deletions
|
@ -81,7 +81,7 @@ struct ContextParameter {
|
|||
struct VertexAttribPointer {
|
||||
GLint size { 4 };
|
||||
GLenum type { GL_FLOAT };
|
||||
bool normalize { true };
|
||||
bool normalize;
|
||||
GLsizei stride { 0 };
|
||||
void const* pointer { 0 };
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue