|
|
|
@ -61,7 +61,7 @@ function upload_square_rgba16ui_texture(gl, serializer, texture_size) {
@@ -61,7 +61,7 @@ function upload_square_rgba16ui_texture(gl, serializer, texture_size) {
|
|
|
|
|
// Upload last row
|
|
|
|
|
if (last_row > 0) { |
|
|
|
|
const last_row_upload = last_row * bpp; |
|
|
|
|
gl.texSubImage2D(gl.TEXTURE_2D, 0, 0, rows_uploaded, last_row, 1, gl.RGBA_INTEGER, gl.UNSIGNED_SHORT, new Uint16Array(serializer.buffer, whole_upload, last_row_upload * 4)); |
|
|
|
|
gl.texSubImage2D(gl.TEXTURE_2D, 0, 0, rows_uploaded, last_row, 1, gl.RGBA_INTEGER, gl.UNSIGNED_SHORT, new Uint16Array(serializer.buffer, whole_upload, last_row_upload)); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
serializer.gpu_upload_from = serializer.offset; |
|
|
|
|