opengl.renderer.lean: Add extra checks for GL errors.
This commit is contained in:
@@ -600,9 +600,12 @@ is
|
|||||||
|
|
||||||
begin
|
begin
|
||||||
Tasks.check;
|
Tasks.check;
|
||||||
|
Errors.log;
|
||||||
|
|
||||||
if clear_Frame then
|
if clear_Frame
|
||||||
|
then
|
||||||
Self.clear_Frame;
|
Self.clear_Frame;
|
||||||
|
Errors.log;
|
||||||
end if;
|
end if;
|
||||||
|
|
||||||
---------------------
|
---------------------
|
||||||
@@ -624,12 +627,14 @@ is
|
|||||||
or ( the_Visual.Model.opaque_Geometries = null
|
or ( the_Visual.Model.opaque_Geometries = null
|
||||||
and the_Visual.Model. lucid_Geometries = null)
|
and the_Visual.Model. lucid_Geometries = null)
|
||||||
then
|
then
|
||||||
|
Errors.log;
|
||||||
the_Visual.Model.create_GL_Geometries (Self.Textures'Access, Self.Fonts);
|
the_Visual.Model.create_GL_Geometries (Self.Textures'Access, Self.Fonts);
|
||||||
-- put_Line ("Rebuild");
|
-- put_Line ("Rebuild");
|
||||||
|
|
||||||
elsif the_Visual.Model.is_Modified
|
elsif the_Visual.Model.is_Modified
|
||||||
then
|
then
|
||||||
the_Visual.Model.modify;
|
the_Visual.Model.modify;
|
||||||
|
Errors.log;
|
||||||
end if;
|
end if;
|
||||||
|
|
||||||
declare
|
declare
|
||||||
@@ -660,6 +665,9 @@ is
|
|||||||
|
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
put_Line ("the_Visuals (" & Each'Image & ") =>");
|
||||||
|
Errors.log;
|
||||||
end loop;
|
end loop;
|
||||||
|
|
||||||
Errors.log;
|
Errors.log;
|
||||||
|
|||||||
Reference in New Issue
Block a user