mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-25 20:01:50 +00:00
Bug 1228949 - Fix WebGLBuffer content type when the target is LOCAL_GL_COPY_READ_BUFFER or LOCAL_GL_COPY_WRITE_BUFFER. r=jgilbert
This commit is contained in:
parent
0e56a625b2
commit
c257b89d86
@ -46,7 +46,9 @@ WebGLBuffer::BindTo(GLenum target)
|
||||
|
||||
case LOCAL_GL_COPY_READ_BUFFER:
|
||||
case LOCAL_GL_COPY_WRITE_BUFFER:
|
||||
/* Do nothing. Doesn't set the type of the buffer contents. */
|
||||
if (mContent == Kind::Undefined) {
|
||||
mContent = Kind::OtherData;
|
||||
}
|
||||
break;
|
||||
|
||||
default:
|
||||
|
Loading…
x
Reference in New Issue
Block a user