mirror of
https://github.com/godotengine/godot-angle-static.git
synced 2026-01-03 14:09:33 +03:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user