Skip to content

Commit

Permalink
do not use constants for glFormat and glType
Browse files Browse the repository at this point in the history
  • Loading branch information
p-an committed Apr 18, 2019
1 parent d521e28 commit c3da29d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion android/opengl/system/gralloc/gralloc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -688,7 +688,7 @@ static int gralloc_lock(gralloc_module_t const* module,
if (sw_read) {
D("gralloc_lock read back color buffer %d %d\n", cb->width, cb->height);
rcEnc->rcReadColorBuffer(rcEnc, cb->hostHandle,
0, 0, cb->width, cb->height, GL_RGBA, GL_UNSIGNED_BYTE, cpu_addr);
0, 0, cb->width, cb->height, cb->glFormat, cb->glType, cpu_addr);
}
}

Expand Down

0 comments on commit c3da29d

Please sign in to comment.