Skip to content

Commit

Permalink
Add handling of HALF_FLOAT for glClear type data passing. Closes #2956
Browse files Browse the repository at this point in the history
  • Loading branch information
baldurk committed Jun 8, 2023
1 parent eb4938e commit a1f56d0
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions renderdoc/driver/gl/wrappers/gl_draw_funcs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4165,7 +4165,8 @@ bool WrappedOpenGL::Serialise_glClearNamedBufferDataEXT(SerialiserType &ser, GLu
case eGL_UNSIGNED_BYTE:
case eGL_BYTE: s *= 1; break;
case eGL_UNSIGNED_SHORT:
case eGL_SHORT: s *= 2; break;
case eGL_SHORT:
case eGL_HALF_FLOAT: s *= 2; break;
case eGL_UNSIGNED_INT:
case eGL_INT:
case eGL_FLOAT: s *= 4; break;
Expand Down Expand Up @@ -4318,7 +4319,8 @@ bool WrappedOpenGL::Serialise_glClearNamedBufferSubDataEXT(SerialiserType &ser,
case eGL_UNSIGNED_BYTE:
case eGL_BYTE: s *= 1; break;
case eGL_UNSIGNED_SHORT:
case eGL_SHORT: s *= 2; break;
case eGL_SHORT:
case eGL_HALF_FLOAT: s *= 2; break;
case eGL_UNSIGNED_INT:
case eGL_INT:
case eGL_FLOAT: s *= 4; break;
Expand Down Expand Up @@ -4620,7 +4622,8 @@ bool WrappedOpenGL::Serialise_glClearTexImage(SerialiserType &ser, GLuint textur
case eGL_UNSIGNED_BYTE:
case eGL_BYTE: s *= 1; break;
case eGL_UNSIGNED_SHORT:
case eGL_SHORT: s *= 2; break;
case eGL_SHORT:
case eGL_HALF_FLOAT: s *= 2; break;
case eGL_UNSIGNED_INT:
case eGL_INT:
case eGL_FLOAT: s *= 4; break;
Expand Down Expand Up @@ -4767,7 +4770,8 @@ bool WrappedOpenGL::Serialise_glClearTexSubImage(SerialiserType &ser, GLuint tex
case eGL_UNSIGNED_BYTE:
case eGL_BYTE: s *= 1; break;
case eGL_UNSIGNED_SHORT:
case eGL_SHORT: s *= 2; break;
case eGL_SHORT:
case eGL_HALF_FLOAT: s *= 2; break;
case eGL_UNSIGNED_INT:
case eGL_INT:
case eGL_FLOAT: s *= 4; break;
Expand Down

0 comments on commit a1f56d0

Please sign in to comment.