mirror of
https://github.com/shadowfacts/lwjgl2-arm64.git
synced 2026-04-05 22:45:50 +00:00
dont compare validity on equals
This commit is contained in:
parent
d0956ea179
commit
325ad04c7e
2 changed files with 2 additions and 2 deletions
|
|
@ -72,7 +72,7 @@ public final class ALCcontext {
|
|||
*/
|
||||
public boolean equals(Object context) {
|
||||
if(context instanceof ALCcontext) {
|
||||
return ((ALCcontext)context).context == this.context && ((ALCcontext)context).valid == this.valid;
|
||||
return ((ALCcontext)context).context == this.context;
|
||||
}
|
||||
return super.equals(context);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -74,7 +74,7 @@ public final class ALCdevice {
|
|||
*/
|
||||
public boolean equals(Object device) {
|
||||
if(device instanceof ALCdevice) {
|
||||
return ((ALCdevice)device).device == this.device && ((ALCdevice)device).valid == this.valid;
|
||||
return ((ALCdevice)device).device == this.device;
|
||||
}
|
||||
return super.equals(device);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue