wined3d: Spelling fixes.
diff --git a/dlls/wined3d/arb_program_shader.c b/dlls/wined3d/arb_program_shader.c
index 5c1e5c3..2117d13 100644
--- a/dlls/wined3d/arb_program_shader.c
+++ b/dlls/wined3d/arb_program_shader.c
@@ -1366,8 +1366,8 @@
     char dst_name[50];
 
     /* texdepth has an implicit destination, the fragment depth value. It's only parameter,
-     * which is essentially an input, is the destiantion register because it is the first
-     * param. According to the msdn, this must be register r5, but let's keep it more flexible
+     * which is essentially an input, is the destination register because it is the first
+     * parameter. According to the msdn, this must be register r5, but let's keep it more flexible
      * here
      */
     pshader_get_register_name(arg->dst, dst_name);
@@ -1562,7 +1562,7 @@
 
 void shader_hw_sincos(SHADER_OPCODE_ARG* arg) {
     /* This instruction exists in ARB, but the d3d instruction takes two extra parameters which
-     * must contain fixed constants. So we need a separate functin to filter those constants and
+     * must contain fixed constants. So we need a separate function to filter those constants and
      * can't use map2gl
      */
     SHADER_BUFFER* buffer = arg->buffer;
diff --git a/dlls/wined3d/baseshader.c b/dlls/wined3d/baseshader.c
index 870d92e..f4c101f 100644
--- a/dlls/wined3d/baseshader.c
+++ b/dlls/wined3d/baseshader.c
@@ -125,7 +125,7 @@
     DWORD opcode_token) {
 
    /* Shaders >= 2.0 may contain address tokens, but fortunately they
-    * have a useful legnth mask - use it here. Shaders 1.0 contain no such tokens */
+    * have a useful length mask - use it here. Shaders 1.0 contain no such tokens */
 
     return (WINED3DSHADER_VERSION_MAJOR(This->baseShader.hex_version) >= 2)?
         ((opcode_token & WINED3DSI_INSTLENGTH_MASK) >> WINED3DSI_INSTLENGTH_SHIFT):
diff --git a/dlls/wined3d/basetexture.c b/dlls/wined3d/basetexture.c
index 3302b71..3b83234 100644
--- a/dlls/wined3d/basetexture.c
+++ b/dlls/wined3d/basetexture.c
@@ -127,7 +127,7 @@
    IWineD3DBaseTexture IWineD3DBaseTexture parts follow
    ****************************************************** */
 
-/* There is no OpenGL equivilent of setLOD, getLOD, all they do it priortise testure loading
+/* There is no OpenGL equivalent of setLOD, getLOD, all they do it prioritize texture loading
  * so just pretend that they work unless something really needs a failure. */
 DWORD WINAPI IWineD3DBaseTextureImpl_SetLOD(IWineD3DBaseTexture *iface, DWORD LODNew) {
     IWineD3DBaseTextureImpl *This = (IWineD3DBaseTextureImpl *)iface;
@@ -299,7 +299,7 @@
                 checkGLcall("glTexParameteri(textureDimensions, GL_TEXTURE_MAX_LEVEL, This->baseTexture.levels)");
             }
             if(textureDimensions==GL_TEXTURE_CUBE_MAP_ARB) {
-                /* Cubemaps are always set to clamp, regardeless of the sampler state. */
+                /* Cubemaps are always set to clamp, regardless of the sampler state. */
                 glTexParameteri(textureDimensions, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE);
                 glTexParameteri(textureDimensions, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE);
                 glTexParameteri(textureDimensions, GL_TEXTURE_WRAP_R, GL_CLAMP_TO_EDGE);
@@ -420,7 +420,7 @@
         glValue = stateLookup[WINELOOKUP_MAGFILTER][state - minLookup[WINELOOKUP_MAGFILTER]];
         TRACE("ValueMAG=%d setting MAGFILTER to %x\n", state, glValue);
         glTexParameteri(textureDimensions, GL_TEXTURE_MAG_FILTER, glValue);
-        /* We need to reset the Aniotropic filtering state when we change the mag filter to WINED3DTEXF_ANISOTROPIC (this seems a bit weird, check the documentataion to see how it should be switched off. */
+        /* We need to reset the Aniotropic filtering state when we change the mag filter to WINED3DTEXF_ANISOTROPIC (this seems a bit weird, check the documentation to see how it should be switched off. */
         if (GL_SUPPORT(EXT_TEXTURE_FILTER_ANISOTROPIC) && WINED3DTEXF_ANISOTROPIC == state &&
             textureDimensions != GL_TEXTURE_RECTANGLE_ARB) {
             glTexParameteri(textureDimensions, GL_TEXTURE_MAX_ANISOTROPY_EXT, samplerStates[WINED3DSAMP_MAXANISOTROPY]);
diff --git a/dlls/wined3d/context.c b/dlls/wined3d/context.c
index 140ae6f..9b02cc7 100644
--- a/dlls/wined3d/context.c
+++ b/dlls/wined3d/context.c
@@ -249,7 +249,7 @@
 
         PUSH1(0); /* end the list */
 
-        /* In case of failure hope that standard ChooosePixelFormat will find something suitable */
+        /* In case of failure hope that standard ChoosePixelFormat will find something suitable */
         if(!GL_EXTCALL(wglChoosePixelFormatARB(hdc, (const int*)&attribs, NULL, 1, &iPixelFormat, &nFormats)))
         {
             /* PixelFormat selection */
@@ -474,10 +474,10 @@
  *
  * Sets up a context for DirectDraw blitting.
  * All texture units are disabled, texture unit 0 is set as current unit
- * fog, lighting, blending, alpha test, z test, scissor test, culling diabled
+ * fog, lighting, blending, alpha test, z test, scissor test, culling disabled
  * color writing enabled for all channels
  * register combiners disabled, shaders disabled
- * world matris is set to identity, texture matrix 0 too
+ * world matrix is set to identity, texture matrix 0 too
  * projection matrix is setup for drawing screen coordinates
  *
  * Params:
@@ -740,7 +740,7 @@
                 if(This->activeContext && tid == This->lastThread) {
                     context = This->activeContext;
                 } else {
-                    /* This may happen if the app jumps streight into offscreen rendering
+                    /* This may happen if the app jumps straight into offscreen rendering
                      * Start using the context of the primary swapchain. tid == 0 is no problem
                      * for findThreadContextForSwapChain.
                      *
diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c
index ff0bcf6..4580c14 100644
--- a/dlls/wined3d/device.c
+++ b/dlls/wined3d/device.c
@@ -1056,7 +1056,7 @@
         /* Set its container to this object */
         IWineD3DVolume_SetContainer(object->volumes[i], (IWineD3DBase *)object);
 
-        /* calcualte the next mipmap level */
+        /* calculate the next mipmap level */
         tmpW = max(1, tmpW >> 1);
         tmpH = max(1, tmpH >> 1);
         tmpD = max(1, tmpD >> 1);
@@ -2166,7 +2166,7 @@
 
     if(!This->d3d_initialized) return WINED3DERR_INVALIDCALL;
 
-    /* I don't think that the interface guarants that the device is destroyed from the same thread
+    /* I don't think that the interface guarantees that the device is destroyed from the same thread
      * it was created. Thus make sure a context is active for the glDelete* calls
      */
     ActivateContext(This, This->lastActiveRenderTarget, CTXUSAGE_RESOURCELOAD);
@@ -2236,7 +2236,7 @@
 
     TRACE("Releasing the render target at %p\n", This->render_targets[0]);
     if(IWineD3DSurface_Release(This->render_targets[0]) >0){
-          /* This check is a bit silly, itshould be in swapchain_release FIXME("(%p) Something's still holding the renderTarget\n",This); */
+          /* This check is a bit silly, it should be in swapchain_release FIXME("(%p) Something's still holding the renderTarget\n",This); */
     }
     TRACE("Setting rendertarget to NULL\n");
     This->render_targets[0] = NULL;
@@ -2458,8 +2458,8 @@
         return WINED3D_OK;
     }
 
-    /* Need to do a getParent and pass the reffs up */
-    /* MSDN says ..... When an application no longer holds a references to this interface, the interface will automatically be freed.
+    /* Need to do a getParent and pass the references up */
+    /* MSDN says ..... When an application no longer holds a reference to this interface, the interface will automatically be freed.
     which suggests that we shouldn't be ref counting? and do need a _release on the stream source to reset the stream source
     so for now, just count internally   */
     if (pStreamData != NULL) {
@@ -2572,7 +2572,7 @@
      */
 
     /* Capture the times we can just ignore the change for now */
-    if (d3dts == WINED3DTS_VIEW) { /* handle the VIEW matrice */
+    if (d3dts == WINED3DTS_VIEW) { /* handle the VIEW matrix */
         This->view_ident = !memcmp(lpmatrix, identity, 16 * sizeof(float));
         /* Handled by the state manager */
     }
@@ -4268,7 +4268,7 @@
 
     if(vbo || SrcStartIndex) {
         unsigned int i;
-        /* ProcessVertices can't convert FROM a vbo, and vertex buffers used to source into ProcesVerticse are
+        /* ProcessVertices can't convert FROM a vbo, and vertex buffers used to source into ProcessVertices are
          * unlikely to ever be used for drawing. Release vbos in those buffers and fix up the strided structure
          *
          * Also get the start index in, but only loop over all elements if there's something to add at all.
@@ -5597,7 +5597,7 @@
         /* not a whole row so we have to do it a line at a time */
         int j;
 
-        /* hopefully using pointer addtion will be quicker than using a point + j * rowoffset */
+        /* hopefully using pointer addition will be quicker than using a point + j * rowoffset */
         const unsigned char* data =((const unsigned char *)IWineD3DSurface_GetData(pSourceSurface)) + offset;
 
         for(j = destTop ; j < (srcHeight + destTop) ; j++){
@@ -6031,7 +6031,7 @@
     }
 }
 
-/* rendertarget and deptth stencil functions */
+/* rendertarget and depth stencil functions */
 static HRESULT  WINAPI  IWineD3DDeviceImpl_GetRenderTarget(IWineD3DDevice* iface,DWORD RenderTargetIndex, IWineD3DSurface **ppRenderTarget) {
     IWineD3DDeviceImpl *This = (IWineD3DDeviceImpl *)iface;
 
@@ -6499,11 +6499,11 @@
     if (pNewZStencil == This->stencilBufferTarget) {
         TRACE("Trying to do a NOP SetRenderTarget operation\n");
     } else {
-        /** OpenGL doesn't support 'sharing' of the stencilBuffer so we may incure an extra memory overhead
+        /** OpenGL doesn't support 'sharing' of the stencilBuffer so we may incur an extra memory overhead
         * depending on the renter target implementation being used.
         * A shared context implementation will share all buffers between all rendertargets (including swapchains),
         * implementations that use separate pbuffers for different swapchains or rendertargets will have to duplicate the
-        * stencil buffer and incure an extra memory overhead
+        * stencil buffer and incur an extra memory overhead
          ******************************************************/
 
         tmp = This->stencilBufferTarget;
@@ -6980,7 +6980,7 @@
 ** ********************************************************/
 /** This function must be called in the release of a resource when ref == 0,
 * the contents of resource must still be correct,
-* any handels to other resource held by the caller must be closed
+* any handles to other resource held by the caller must be closed
 * (e.g. a texture should release all held surfaces because telling the device that it's been released.)
  *****************************************************/
 static void WINAPI IWineD3DDeviceImpl_AddResource(IWineD3DDevice *iface, IWineD3DResource *resource){
@@ -7129,7 +7129,7 @@
     }
 
 
-    /* Remove the resoruce from the resourceStore */
+    /* Remove the resource from the resourceStore */
     IWineD3DDeviceImpl_RemoveResource(iface, resource);
 
     TRACE("Resource released\n");
diff --git a/dlls/wined3d/directx.c b/dlls/wined3d/directx.c
index f1c7100..679dcbb 100644
--- a/dlls/wined3d/directx.c
+++ b/dlls/wined3d/directx.c
@@ -970,7 +970,7 @@
      * video memory. If the value is slightly wrong it doesn't matter as we didn't include AGP-like memory which
      * makes the amount of addressable memory higher and second OpenGL isn't that critical it moves to system
      * memory behind our backs if really needed.
-     * Note that the amout of video memory can be overruled using a registry setting.
+     * Note that the amount of video memory can be overruled using a registry setting.
      */
     switch (gl_info->gl_vendor) {
         case VENDOR_NVIDIA:
@@ -2667,7 +2667,7 @@
             *pCaps->PS20Caps.Caps                     = 0;
             *pCaps->PS20Caps.DynamicFlowControlDepth  = 0; /* WINED3DVS20_MIN_DYNAMICFLOWCONTROLDEPTH = 0 */
             *pCaps->PS20Caps.NumTemps                 = max(12, GLINFO_LOCATION.ps_arb_max_temps);
-            *pCaps->PS20Caps.StaticFlowControlDepth   = WINED3DPS20_MIN_STATICFLOWCONTROLDEPTH; /* Minumum: 1 */
+            *pCaps->PS20Caps.StaticFlowControlDepth   = WINED3DPS20_MIN_STATICFLOWCONTROLDEPTH; /* Minimum: 1 */
             *pCaps->PS20Caps.NumInstructionSlots      = WINED3DPS20_MIN_NUMINSTRUCTIONSLOTS; /* Minimum number (64 ALU + 32 Texture), a GeforceFX uses 512 */
 
             *pCaps->MaxPShaderInstructionsExecuted    = 512; /* Minimum value, a GeforceFX uses 1024 */
@@ -2882,7 +2882,7 @@
 
         /* The Intel GPUs on MacOS set the .w register of texcoords to 0.0 by default, which causes problems
          * with fixed function fragment processing. Ideally this flag should be detected with a test shader
-         * and opengl feedback mode, but some GL implementations(MacOS ATI at least, propably all macos ones)
+         * and OpenGL feedback mode, but some GL implementations (MacOS ATI at least, probably all MacOS ones)
          * do not like vertex shaders in feedback mode and return an error, even though it should be valid
          * according to the spec.
          *
diff --git a/dlls/wined3d/drawprim.c b/dlls/wined3d/drawprim.c
index c3c642c..234c23a 100644
--- a/dlls/wined3d/drawprim.c
+++ b/dlls/wined3d/drawprim.c
@@ -1099,7 +1099,7 @@
         }
     }
 
-    /* Finshed updating the screen, restore lock */
+    /* Finished updating the screen, restore lock */
     LEAVE_GL();
     TRACE("Done all gl drawing\n");
 
@@ -1160,7 +1160,7 @@
  *
  * The problem is that OpenGL does not offer a direct way to return the tesselated primitives,
  * and they can't be sent off for rendering directly either. Tesselating is slow, so we want
- * to chache the patches in a vertex buffer. But more importantly, gl can't bind generated
+ * to cache the patches in a vertex buffer. But more importantly, gl can't bind generated
  * attributes to numbered shader attributes, so we have to store them and rebind them as needed
  * in drawprim.
  *
diff --git a/dlls/wined3d/pixelshader.c b/dlls/wined3d/pixelshader.c
index cabc629..27035d0 100644
--- a/dlls/wined3d/pixelshader.c
+++ b/dlls/wined3d/pixelshader.c
@@ -105,7 +105,7 @@
 }
 
 CONST SHADER_OPCODE IWineD3DPixelShaderImpl_shader_ins[] = {
-    /* Arithmethic */
+    /* Arithmetic */
     {WINED3DSIO_NOP,  "nop", "NOP", 0, 0, pshader_hw_map2gl, NULL, 0, 0},
     {WINED3DSIO_MOV,  "mov", "MOV", 1, 2, pshader_hw_map2gl, shader_glsl_mov, 0, 0},
     {WINED3DSIO_ADD,  "add", "ADD", 1, 3, pshader_hw_map2gl, shader_glsl_arith, 0, 0},
@@ -510,7 +510,7 @@
         }
 
         /* Don't do any register mapping magic if it is not needed, or if we can't
-         * achive anything anyway
+         * achieve anything anyway
          */
         if(highest_reg_used < (GL_LIMITS(glsl_varyings) / 4) ||
            num_regs_used > (GL_LIMITS(glsl_varyings) / 4) ) {
diff --git a/dlls/wined3d/query.c b/dlls/wined3d/query.c
index 55c4d00..3f02901 100644
--- a/dlls/wined3d/query.c
+++ b/dlls/wined3d/query.c
@@ -134,7 +134,7 @@
         if(pData == NULL || dwSize == 0) break;
         for(i = 0; i < WINED3DRTYPECOUNT; i++){
             /*I'm setting the default values to 1 so as to reduce the risk of a div/0 in the caller*/
-            /*  isTextureResident could be used to get some of this infomration  */
+            /*  isTextureResident could be used to get some of this information  */
             data->stats[i].bThrashing            = FALSE;
             data->stats[i].ApproxBytesDownloaded = 1;
             data->stats[i].NumEvicts             = 1;
@@ -187,7 +187,7 @@
         DWORD* data = pData;
 
         if(This->state == QUERY_CREATED) {
-            /* D3D allows GetData on a new query, opengl doesn't. So just invent the data outselves */
+            /* D3D allows GetData on a new query, OpenGL doesn't. So just invent the data ourselves */
             TRACE("Query wasn't yet started, returning S_OK\n");
             res = S_OK;
             if(data) *data = 0;
diff --git a/dlls/wined3d/resource.c b/dlls/wined3d/resource.c
index 9ebaadb..6f0446a 100644
--- a/dlls/wined3d/resource.c
+++ b/dlls/wined3d/resource.c
@@ -88,11 +88,11 @@
 
     if (This->resource.wineD3DDevice != NULL) {
         IWineD3DDevice_ResourceReleased((IWineD3DDevice *)This->resource.wineD3DDevice, iface);
-    }/* NOTE: this is not really an error for systemmem resoruces */
+    }/* NOTE: this is not really an error for systemmem resources */
     return;
 }
 
-/* IWineD3DResource Interface follow: */
+/* IWineD3DResource Interface follows: */
 HRESULT WINAPI IWineD3DResourceImpl_GetDevice(IWineD3DResource *iface, IWineD3DDevice** ppDevice) {
     IWineD3DResourceImpl *This = (IWineD3DResourceImpl *)iface;
     TRACE("(%p) : returning %p\n", This, This->resource.wineD3DDevice);
diff --git a/dlls/wined3d/state.c b/dlls/wined3d/state.c
index 46aa6e4..5e6be54 100644
--- a/dlls/wined3d/state.c
+++ b/dlls/wined3d/state.c
@@ -83,8 +83,8 @@
 
     /* Lighting is not enabled if transformed vertices are drawn
      * but lighting does not affect the stream sources, so it is not grouped for performance reasons.
-     * This state reads the decoded vertex decl, so if it is dirty don't do anything. The
-     * vertex declaration appplying function calls this function for updating
+     * This state reads the decoded vertex declaration, so if it is dirty don't do anything. The
+     * vertex declaration applying function calls this function for updating
      */
 
     if(isStateDirty(context, STATE_VDECL)) {
@@ -435,7 +435,7 @@
     if (use_vs(stateblock->wineD3DDevice)) {
         /* The spec says that opengl clipping planes are disabled when using shaders. Direct3D planes aren't,
          * so that is an issue. The MacOS ATI driver keeps clipping planes activated with shaders in some
-         * contitions I got sick of tracking down. The shader state handler disables all clip planes because
+         * conditions I got sick of tracking down. The shader state handler disables all clip planes because
          * of that - don't do anything here and keep them disabled
          */
         if(stateblock->renderState[WINED3DRS_CLIPPLANEENABLE]) {
@@ -1457,7 +1457,7 @@
      http://www.cosc.brocku.ca/Offerings/3P98/course/lectures/texture/
      http://msdn.microsoft.com/archive/default.asp?url=/archive/en-us/directx9_c/directx/graphics/programmingguide/FixedFunction/Textures/texturewrapping.asp
      http://www.gamedev.net/reference/programming/features/rendererdll3/page2.asp
-     Descussion that ways to turn on WRAPing to solve an opengl conversion problem.
+     Discussion on the ways to turn on WRAPing to solve an OpenGL conversion problem.
      http://www.flipcode.org/cgi-bin/fcmsg.cgi?thread_show=10248
 
      so far as I can tell, wrapping and texture-coordinate generate go hand in hand,
@@ -1916,7 +1916,7 @@
     DWORD op, arg1, arg2, arg0;
 
     TRACE("Setting alpha op for stage %d\n", stage);
-    /* Do not care for enabled / disabled stages, just assign the settigns. colorop disables / enables required stuff */
+    /* Do not care for enabled / disabled stages, just assign the settings. colorop disables / enables required stuff */
     if (mapped_stage != -1) {
         if (GL_SUPPORT(ARB_MULTITEXTURE)) {
             if (tex_used && mapped_stage >= GL_LIMITS(textures)) {
@@ -2543,7 +2543,7 @@
      *
      * Deliberately no check if the vertex declaration is dirty because the vdecl state
      * does not always update the world matrix, only on a switch between transformed
-     * and untrannsformed draws. It *may* happen that the world matrix is set 2 times during one
+     * and untransformed draws. It *may* happen that the world matrix is set 2 times during one
      * draw, but that should be rather rare and cheaper in total.
      */
     glMatrixMode(GL_MODELVIEW);
@@ -3198,7 +3198,7 @@
 
         /* min(WINED3D_ATR_SIZE(position),3) to Disable RHW mode as 'w' coord
            handling for rhw mode should not impact screen position whereas in GL it does.
-           This may  result in very slightly distored textures in rhw mode, but
+           This may result in very slightly distorted textures in rhw mode, but
            a very minimal different. There's always the other option of
            fixing the view matrix to prevent w from having any effect
 
@@ -3247,9 +3247,9 @@
     /*  WARNING: Data here MUST be in RGBA format, so cannot      */
     /*     go directly into fast mode from app pgm, because       */
     /*     directx requires data in BGRA format.                  */
-    /* currently fixupVertices swizels the format, but this isn't */
+    /* currently fixupVertices swizzles the format, but this isn't */
     /* very practical when using VBOS                             */
-    /* NOTE: Unless we write a vertex shader to swizel the colour */
+    /* NOTE: Unless we write a vertex shader to swizzle the colour */
     /* , or the user doesn't care and wants the speed advantage   */
 
     if (sd->u.s.diffuse.lpData || sd->u.s.diffuse.VBO) {
diff --git a/dlls/wined3d/utils.c b/dlls/wined3d/utils.c
index 0f4a8cb..56745db 100644
--- a/dlls/wined3d/utils.c
+++ b/dlls/wined3d/utils.c
@@ -350,7 +350,7 @@
 void init_type_lookup(WineD3D_GL_Info *gl_info) {
     memcpy(gl_info->glTypeLookup, glTypeLookupTemplate, sizeof(glTypeLookupTemplate));
     if(!GL_SUPPORT(NV_HALF_FLOAT)) {
-        /* Do not change the size of the type, it is CPU side. Whe have to change the GPU-side information though.
+        /* Do not change the size of the type, it is CPU side. We have to change the GPU-side information though.
          * It is the job of the vertex buffer code to make sure that the vbos have the right format
          */
         gl_info->glTypeLookup[WINED3DDECLTYPE_FLOAT16_2].glType = GL_FLOAT;
@@ -2603,7 +2603,7 @@
                 case WINED3DDECLTYPE_FLOAT3: /* Opengl defaults match dx defaults */
                 case WINED3DDECLTYPE_FLOAT4: /* No defaults apply, all app defined */
 
-                /* This is to prevent swaping the matrix lines and put the default 4th coord = 1.0
+                /* This is to prevent swapping the matrix lines and put the default 4th coord = 1.0
                  * into a bad place. The division elimination below will apply to make sure the
                  * 1.0 doesn't do anything bad. The caller will set this value if the stride is 0
                  */
@@ -2737,7 +2737,7 @@
         case 15: return WINED3DFMT_X1R5G5B5;
         case 16: return WINED3DFMT_R5G6B5;
         case 24: return WINED3DFMT_X8R8G8B8; /* Robots needs 24bit to be X8R8G8B8 */
-        case 32: return WINED3DFMT_X8R8G8B8; /* EVE online and the Fur demo need 32bit AdapterDisplatMode to return X8R8G8B8 */
+        case 32: return WINED3DFMT_X8R8G8B8; /* EVE online and the Fur demo need 32bit AdapterDisplayMode to return X8R8G8B8 */
         default: return WINED3DFMT_UNKNOWN;
     }
 }
diff --git a/dlls/wined3d/vertexbuffer.c b/dlls/wined3d/vertexbuffer.c
index 07ca2a0..0c4b2c2 100644
--- a/dlls/wined3d/vertexbuffer.c
+++ b/dlls/wined3d/vertexbuffer.c
@@ -301,7 +301,7 @@
      * that concern the current buffer. A problem with this is that this can change between draws, so we have to validate
      * the information and reprocess the buffer if it changes, and avoid false positives for performance reasons.
      *
-     * We have do destinguish between vertex shaders and fixed function to pick the way we access the
+     * We have to distinguish between vertex shaders and fixed function to pick the way we access the
      * strided vertex information.
      *
      * This code sets up a per-byte array with the size of the detected stride of the arrays in the
@@ -429,7 +429,7 @@
         declChanged = IWineD3DVertexBufferImpl_FindDecl(This);
     } else if(This->Flags & VBFLAG_HASDESC) {
         /* Reuse the declaration stored in the buffer. It will most likely not change, and if it does
-         * the stream source state handler will call PreLoad again and the change will be cought
+         * the stream source state handler will call PreLoad again and the change will be caught
          */
     } else {
         /* Cannot get a declaration, and no declaration is stored in the buffer. It is pointless to preload
@@ -440,8 +440,8 @@
     }
 
     /* If applications change the declaration over and over, reconverting all the time is a huge
-     * performance hit. So count the declaration changes and release the VBO if there are too much
-     * of them(and thus stop converting)
+     * performance hit. So count the declaration changes and release the VBO if there are too many
+     * of them (and thus stop converting)
      */
     if(declChanged) {
         This->declChanges++;
diff --git a/dlls/wined3d/vertexshader.c b/dlls/wined3d/vertexshader.c
index d6c34d8..04b52d9 100644
--- a/dlls/wined3d/vertexshader.c
+++ b/dlls/wined3d/vertexshader.c
@@ -75,8 +75,8 @@
  *  http://developer.nvidia.com/view.asp?IO=var_memory_management
  */
 
-/* TODO: Vertex and Pixel shaders are almost identicle, the only exception being the way that some of the data is looked up or the availablity of some of the data i.e. some instructions are only valid for pshaders and some for vshaders
-because of this the bulk of the software pipeline can be shared between pixel and vertex shaders... and it wouldn't supprise me if the programes can be cross compiled using a large body body shared code */
+/* TODO: Vertex and Pixel shaders are almost identical, the only exception being the way that some of the data is looked up or the availability of some of the data i.e. some instructions are only valid for pshaders and some for vshaders
+because of this the bulk of the software pipeline can be shared between pixel and vertex shaders... and it wouldn't surprise me if the program can be cross compiled using a large body of shared code */
 
 #define GLNAME_REQUIRE_GLSL  ((const char *)1)
 
@@ -418,8 +418,8 @@
 
         /* Z coord [0;1]->[-1;1] mapping, see comment in transform_projection in state.c
          *
-         * Basically we want(in homogenous coordinates) z = z * 2 - 1. However, shaders are run
-         * before the homogenous divide, so we have to take the w into account: z = ((z / w) * 2 - 1) * w,
+         * Basically we want (in homogeneous coordinates) z = z * 2 - 1. However, shaders are run
+         * before the homogeneous divide, so we have to take the w into account: z = ((z / w) * 2 - 1) * w,
          * which is the same as z = z / 2 - w.
          */
         shader_addline(&buffer, "gl_Position.z = gl_Position.z * 2.0 - gl_Position.w;\n");
diff --git a/dlls/wined3d/wined3d_private.h b/dlls/wined3d/wined3d_private.h
index 7c95275..86f7869 100644
--- a/dlls/wined3d/wined3d_private.h
+++ b/dlls/wined3d/wined3d_private.h
@@ -488,7 +488,7 @@
     IWineD3DSurface         *surface;
     DWORD                   tid;    /* Thread ID which owns this context at the moment */
 
-    /* Stores some inforation about the context state for optimization */
+    /* Stores some information about the context state for optimization */
     GLint                   last_draw_buffer;
     BOOL                    last_was_rhw;      /* true iff last draw_primitive was in xyzrhw mode */
     BOOL                    last_was_pshader;
@@ -513,7 +513,7 @@
 
 typedef enum ContextUsage {
     CTXUSAGE_RESOURCELOAD       = 1,    /* Only loads textures: No State is applied */
-    CTXUSAGE_DRAWPRIM           = 2,    /* OpenGL states are set up for blitting DirectDraw surfacs */
+    CTXUSAGE_DRAWPRIM           = 2,    /* OpenGL states are set up for blitting DirectDraw surfaces */
     CTXUSAGE_BLIT               = 3,    /* OpenGL states are set up 3D drawing */
     CTXUSAGE_CLEAR              = 4,    /* Drawable and states are set up for clearing */
 } ContextUsage;