Commit 931c78cb by Corentin Wallez

Fix typo intialize -> initialize

Change-Id: Ia39fffc6f2782b918b37ab7ae25ee16ecc98e93a Reviewed-on: https://chromium-review.googlesource.com/269120Reviewed-by: 's avatarGeoff Lang <geofflang@chromium.org> Tested-by: 's avatarCorentin Wallez <cwallez@chromium.org>
parent 96de96b7
......@@ -558,9 +558,9 @@ static inline unsigned int ComputeTypeIndex(GLenum type)
const VertexFormat &GetVertexFormatInfo(DWORD supportedDeclTypes, const gl::VertexFormat &vertexFormat)
{
static bool initialized = false;
static DWORD intializedDeclTypes = 0;
static DWORD initializedDeclTypes = 0;
static VertexFormat formatConverters[NUM_GL_VERTEX_ATTRIB_TYPES][2][4];
if (intializedDeclTypes != supportedDeclTypes)
if (initializedDeclTypes != supportedDeclTypes)
{
const TranslationDescription translations[NUM_GL_VERTEX_ATTRIB_TYPES][2][4] = // [GL types as enumerated by typeIndex()][normalized][size-1]
{
......@@ -589,7 +589,7 @@ const VertexFormat &GetVertexFormatInfo(DWORD supportedDeclTypes, const gl::Vert
}
}
initialized = true;
intializedDeclTypes = supportedDeclTypes;
initializedDeclTypes = supportedDeclTypes;
}
// Pure integer attributes only supported in ES3.0
......
......@@ -104,7 +104,7 @@ egl::Error DisplayWGL::initialize(egl::Display *display)
}
mFunctionsWGL = new FunctionsWGL();
mFunctionsWGL->intialize(mOpenGLModule, nullptr);
mFunctionsWGL->initialize(mOpenGLModule, nullptr);
// WGL can't grab extensions until it creates a context because it needs to load the driver's DLLs first.
// Create a dummy context to load the driver and determine which GL versions are available.
......@@ -185,7 +185,7 @@ egl::Error DisplayWGL::initialize(egl::Display *display)
}
// Reinitialize the wgl functions to grab the extensions
mFunctionsWGL->intialize(mOpenGLModule, dummyDeviceContext);
mFunctionsWGL->initialize(mOpenGLModule, dummyDeviceContext);
// Destroy the dummy window and context
mFunctionsWGL->makeCurrent(dummyDeviceContext, NULL);
......
......@@ -80,7 +80,7 @@ FunctionsWGL::FunctionsWGL()
{
}
void FunctionsWGL::intialize(HMODULE glModule, HDC context)
void FunctionsWGL::initialize(HMODULE glModule, HDC context)
{
// First grab the wglGetProcAddress function from the gl module
GetWGLProcAddress(glModule, nullptr, "wglGetProcAddress", &getProcAddress);
......
......@@ -18,7 +18,7 @@ class FunctionsWGL : angle::NonCopyable
FunctionsWGL();
// Loads all available wgl functions, may be called multiple times
void intialize(HMODULE glModule, HDC context);
void initialize(HMODULE glModule, HDC context);
// Base WGL functions
PFNWGLCOPYCONTEXTPROC copyContext;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment