From 4cc0056a216f95799cb4a576117b1995be3a47ac Mon Sep 17 00:00:00 2001 From: Marc Lepage Date: Thu, 12 Jul 2012 00:21:25 -0400 Subject: [PATCH] Fix some typos in comments. --- src/modules/graphics/opengl/Graphics.cpp | 4 ++-- src/modules/graphics/opengl/Graphics.h | 2 +- src/modules/graphics/opengl/VertexBuffer.h | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/modules/graphics/opengl/Graphics.cpp b/src/modules/graphics/opengl/Graphics.cpp index 0399e407b..a0a71de33 100644 --- a/src/modules/graphics/opengl/Graphics.cpp +++ b/src/modules/graphics/opengl/Graphics.cpp @@ -113,7 +113,7 @@ bool Graphics::setMode(int width, int height, bool fullscreen, bool vsync, int f if (isCreated()) tempState = saveState(); - // Unlad all volatile objects. These must be reloaded after + // Unload all volatile objects. These must be reloaded after // the display mode change. Volatile::unloadAll(); @@ -402,7 +402,7 @@ Canvas *Graphics::newCanvas(int width, int height) Canvas *canvas = new Canvas(width, height); GLenum err = canvas->getStatus(); - // everything ok, reaturn canvas (early out) + // everything ok, return canvas (early out) if (err == GL_FRAMEBUFFER_COMPLETE) return canvas; diff --git a/src/modules/graphics/opengl/Graphics.h b/src/modules/graphics/opengl/Graphics.h index 7e3ca454d..b7dfa2b1a 100644 --- a/src/modules/graphics/opengl/Graphics.h +++ b/src/modules/graphics/opengl/Graphics.h @@ -211,7 +211,7 @@ public: int getModes(lua_State *L); /** - * Scissor defines a box such that everything outside that box is discared and not drawn. + * Scissor defines a box such that everything outside that box is discarded and not drawn. * Scissoring is automatically enabled. * @param x The x-coordinate of the top-left corner. * @param y The y-coordinate of the top-left corner. diff --git a/src/modules/graphics/opengl/VertexBuffer.h b/src/modules/graphics/opengl/VertexBuffer.h index 1c379f843..f9be117f8 100644 --- a/src/modules/graphics/opengl/VertexBuffer.h +++ b/src/modules/graphics/opengl/VertexBuffer.h @@ -36,7 +36,7 @@ namespace opengl { /** - * VertexBuffer is an abstraction over VBOs (Vertex Buffer Objecys), which + * VertexBuffer is an abstraction over VBOs (Vertex Buffer Objects), which * falls back to regular vertex arrays if VBOs are not supported. * * This allows code to take advantage of VBOs where available, but still