mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-12-23 06:11:46 +00:00
[client] egl: fix mistake in rect clamping
This commit is contained in:
parent
16f39450b5
commit
947db38bc9
1 changed files with 2 additions and 2 deletions
|
@ -126,8 +126,8 @@ bool egl_textureUpdateRect(EGL_Texture * this,
|
||||||
{
|
{
|
||||||
x = clamp(x , 0, this->format.width );
|
x = clamp(x , 0, this->format.width );
|
||||||
y = clamp(y , 0, this->format.height );
|
y = clamp(y , 0, this->format.height );
|
||||||
width = clamp(width , x, this->format.width - x);
|
width = clamp(width , 0, this->format.width - x);
|
||||||
height = clamp(height, y, this->format.height - y);
|
height = clamp(height, 0, this->format.height - y);
|
||||||
|
|
||||||
if (!width || !height)
|
if (!width || !height)
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in a new issue