Skip to content

Commit

Permalink
Add missing breaks
Browse files Browse the repository at this point in the history
  • Loading branch information
dmaivel committed Jul 13, 2024
1 parent b12a700 commit f4fd8b5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/server/processor.c
Original file line number Diff line number Diff line change
Expand Up @@ -5466,6 +5466,7 @@ void sgl_cmd_processor_start(struct sgl_cmd_processor_args args)
use_uploaded = *pb++,
usage = *pb++;
glNamedBufferStorage(target, size, use_uploaded ? uploaded : NULL, usage);
break;
}
case SGL_CMD_NAMEDBUFFERDATA: {
int buffer = *pb++,
Expand All @@ -5480,6 +5481,7 @@ void sgl_cmd_processor_start(struct sgl_cmd_processor_args args)
offset = *pb++,
size = *pb++;
glNamedBufferSubData(target, offset, size, uploaded);
break;
}
case SGL_CMD_CLEARNAMEDBUFFERDATA: {
int target = *pb++;
Expand Down Expand Up @@ -5593,12 +5595,14 @@ void sgl_cmd_processor_start(struct sgl_cmd_processor_args args)
int target = *pb++,
pname = *pb++;
glGetNamedFramebufferParameteriv(target, pname, (int*)(p + SGL_OFFSET_REGISTER_RETVAL_V));
break;
}
case SGL_CMD_GETNAMEDFRAMEBUFFERATTACHMENTPARAMETERIV: {
int target = *pb++,
attachment = *pb++,
pname = *pb++;
glGetNamedFramebufferAttachmentParameteriv(target, attachment, pname, (int*)(p + SGL_OFFSET_REGISTER_RETVAL_V));
break;
}
case SGL_CMD_CREATERENDERBUFFERS: {
glCreateRenderbuffers(1, (unsigned int*)(p + SGL_OFFSET_REGISTER_RETVAL));
Expand Down

0 comments on commit f4fd8b5

Please sign in to comment.