[core] change std::array<uint16_t, 2> to mbgl::Size
This commit is contained in:
@@ -244,14 +244,14 @@ ActiveTexture::Type ActiveTexture::Get() {
|
||||
const constexpr Viewport::Type Viewport::Default;
|
||||
|
||||
void Viewport::Set(const Type& value) {
|
||||
MBGL_CHECK_ERROR(glViewport(value.x, value.y, value.width, value.height));
|
||||
MBGL_CHECK_ERROR(glViewport(value.x, value.y, value.size.width, value.size.height));
|
||||
}
|
||||
|
||||
Viewport::Type Viewport::Get() {
|
||||
GLint viewport[4];
|
||||
MBGL_CHECK_ERROR(glGetIntegerv(GL_VIEWPORT, viewport));
|
||||
return { static_cast<int32_t>(viewport[0]), static_cast<int32_t>(viewport[1]),
|
||||
static_cast<uint16_t>(viewport[2]), static_cast<uint16_t>(viewport[3]) };
|
||||
{ static_cast<uint32_t>(viewport[2]), static_cast<uint32_t>(viewport[3]) } };
|
||||
}
|
||||
|
||||
const constexpr BindFramebuffer::Type BindFramebuffer::Default;
|
||||
|
||||
Reference in New Issue
Block a user