X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=docs%2Fdispatch.html;h=c96ec2de302b522776473c42d10364aee2b8abf1;hb=293b3e0a3f73ef85b446259dc9422932e0b8ff49;hp=4b529bc0487e39b5179bd78eb640c62888c36a43;hpb=814345f54b74eee2597cf84f3c34817488f07522;p=mesa.git diff --git a/docs/dispatch.html b/docs/dispatch.html index 4b529bc0487..c96ec2de302 100644 --- a/docs/dispatch.html +++ b/docs/dispatch.html @@ -25,7 +25,7 @@ href="#overview">overview of Mesa's implementation.
Every GL application has at least one object called a GL context. -This object, which is an implicit parameter to ever GL function, stores all +This object, which is an implicit parameter to every GL function, stores all of the GL related state for the application. Every texture, every buffer object, every enable, and much, much more is stored in the context. Since an application can have more than one context, the context to be used is @@ -51,7 +51,7 @@ example, glFogCoordf may operate differently depending on whether or not fog is enabled.
In multi-threaded environments, it is possible for each thread to have a -differnt GL context current. This means that poor old glVertex3fv +different GL context current. This means that poor old glVertex3fv has to know which GL context is current in the thread where it is being called.
@@ -204,16 +204,15 @@ terribly relevant. few preprocessor defines.Two different techniques are used to handle the various different cases. On x86 and SPARC, a macro called GL_STUB is used. In the preamble of the assembly source file different implementations of the macro are -selected based on the defined preprocessor variables. The assmebly code +selected based on the defined preprocessor variables. The assembly code then consists of a series of invocations of the macros such as:
@@ -242,7 +241,7 @@ first technique, is to insert #ifdef within the assembly implementation of each function. This makes the assembly file considerably larger (e.g., 29,332 lines for glapi_x86-64.S versus 1,155 lines for glapi_x86.S) and causes simple changes to the function -implementation to generate many lines of diffs. Since the assmebly files +implementation to generate many lines of diffs. Since the assembly files are typically generated by scripts (see below), this isn't a significant problem.