]> git.tdb.fi Git - gldbg.git/blobdiff - source/gldbg.cpp
Fix limit query in Inspector/GlState
[gldbg.git] / source / gldbg.cpp
index c13d5cc2fa6bbafb1b42c87b38139cf78fd58c10..9da31ea85917f76731126188690ee1727b0058dc 100644 (file)
@@ -134,7 +134,7 @@ void GlDbg::set_breakpoint(unsigned short func, unsigned char flag, Tool *owner)
                        breakpoints.back().add_owner(owner);
                }
 
-               if(process.get_state()>=Process::RUNNING)
+               if(process.get_state()!=Process::INACTIVE)
                        send_breakpoint(func, flag, 0);
        }
 }
@@ -158,7 +158,7 @@ void GlDbg::clear_breakpoint(unsigned short func, unsigned char flag, Tool *owne
                                        break;
                                }
 
-                       if(process.get_state()>=Process::RUNNING)
+                       if(process.get_state()!=Process::INACTIVE)
                                send_breakpoint(func, 0, flag);
                }
        }