Skip to content

Commit

Permalink
Implement glPixelStoref
Browse files Browse the repository at this point in the history
It's unclear why this function exists, given that all attributes are
booleans or integers, but let it be.
  • Loading branch information
mardy committed Oct 4, 2024
1 parent 129f3ad commit 2088130
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/functions.c
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ static const ProcMap s_proc_map[] = {
PROC(glPixelMapfv),
PROC(glPixelMapuiv),
PROC(glPixelMapusv),
//PROC(glPixelStoref),
PROC(glPixelStoref),
PROC(glPixelStorei),
//PROC(glPixelTransferf),
//PROC(glPixelTransferi),
Expand Down
5 changes: 5 additions & 0 deletions src/gc_gl.c
Original file line number Diff line number Diff line change
Expand Up @@ -788,6 +788,11 @@ void glColorMaterial(GLenum face, GLenum mode)
glparamstate.lighting.color_material_mode = mode;
}

void glPixelStoref(GLenum pname, GLfloat param)
{
glPixelStorei(pname, param);
}

void glPixelStorei(GLenum pname, GLint param)
{
switch (pname) {
Expand Down

0 comments on commit 2088130

Please sign in to comment.