mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 20:08:06 +02:00
mesa: Only initialize TNL for OpenGL
This commit is contained in:
parent
0bb23b4b6f
commit
cdf9f4680f
1 changed files with 5 additions and 4 deletions
|
|
@ -888,10 +888,6 @@ _mesa_initialize_context_for_api(GLcontext *ctx,
|
|||
}
|
||||
#endif
|
||||
ctx->CurrentDispatch = ctx->Exec;
|
||||
/* Neutral tnl module stuff */
|
||||
_mesa_init_exec_vtxfmt( ctx );
|
||||
ctx->TnlModule.Current = NULL;
|
||||
ctx->TnlModule.SwapCount = 0;
|
||||
|
||||
ctx->FragmentProgram._MaintainTexEnvProgram
|
||||
= (_mesa_getenv("MESA_TEX_PROG") != NULL);
|
||||
|
|
@ -905,6 +901,11 @@ _mesa_initialize_context_for_api(GLcontext *ctx,
|
|||
|
||||
switch (ctx->API) {
|
||||
case API_OPENGL:
|
||||
/* Neutral tnl module stuff */
|
||||
_mesa_init_exec_vtxfmt( ctx );
|
||||
ctx->TnlModule.Current = NULL;
|
||||
ctx->TnlModule.SwapCount = 0;
|
||||
|
||||
#if FEATURE_dlist
|
||||
ctx->Save = _mesa_create_save_table();
|
||||
if (!ctx->Save) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue