Fix remaining size_t conversion warnings.

BUG=angleproject:1120

Change-Id: If4fba903511dcd57d21f8f8178e772cf3cae4187
Reviewed-on: https://chromium-review.googlesource.com/293750
Tested-by: Jamie Madill <jmadill@chromium.org>
Reviewed-by: Geoff Lang <geofflang@chromium.org>
This commit is contained in:
Jamie Madill
2015-08-14 10:50:17 -04:00
parent 5cf0f982d5
commit 49e8de701b
6 changed files with 18 additions and 10 deletions

View File

@@ -137,14 +137,15 @@ class PostSubBufferSample : public SampleApplication
glEnableVertexAttribArray(mTexcoordLoc);
// Draw the cube
glDrawElements(GL_TRIANGLES, mCube.indices.size(), GL_UNSIGNED_SHORT, mCube.indices.data());
glDrawElements(GL_TRIANGLES, static_cast<GLsizei>(mCube.indices.size()), GL_UNSIGNED_SHORT,
mCube.indices.data());
}
virtual void swap()
{
// Instead of letting the application call eglSwapBuffers, call eglPostSubBufferNV here instead
size_t windowWidth = getWindow()->getWidth();
size_t windowHeight = getWindow()->getHeight();
EGLint windowWidth = static_cast<EGLint>(getWindow()->getWidth());
EGLint windowHeight = static_cast<EGLint>(getWindow()->getHeight());
EGLDisplay display = getDisplay();
EGLSurface surface = getSurface();
mPostSubBufferNV(display, surface, 60, 60, windowWidth - 120, windowHeight - 120);