Use correct transfer offset for GL_HALF_FLOAT_OES
Another issue that came up when reenabling ES2 ANGLE contexts. Change-Id: I6f7af6af0511384faf7bc63e699a8f6ea7a2ce92 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/293916 Commit-Queue: Brian Salomon <bsalomon@google.com> Commit-Queue: Greg Daniel <egdaniel@google.com> Auto-Submit: Brian Salomon <bsalomon@google.com> Reviewed-by: Greg Daniel <egdaniel@google.com>
This commit is contained in:
parent
64c8b811b5
commit
f80a78602e
@ -4081,6 +4081,7 @@ size_t offset_alignment_for_transfer_buffer(GrGLenum externalType) {
|
||||
case GR_GL_UNSIGNED_INT: return sizeof(GrGLuint);
|
||||
case GR_GL_INT: return sizeof(GrGLint);
|
||||
case GR_GL_HALF_FLOAT: return sizeof(GrGLhalf);
|
||||
case GR_GL_HALF_FLOAT_OES: return sizeof(GrGLhalf);
|
||||
case GR_GL_FLOAT: return sizeof(GrGLfloat);
|
||||
case GR_GL_UNSIGNED_SHORT_5_6_5: return sizeof(GrGLushort);
|
||||
case GR_GL_UNSIGNED_SHORT_4_4_4_4: return sizeof(GrGLushort);
|
||||
|
Loading…
Reference in New Issue
Block a user