mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 10:22:45 -04:00
remove buggy driver workaround
This commit is contained in:
parent
ec83e7f9c6
commit
0764556c80
@ -4355,12 +4355,15 @@ finish_modify_state() {
|
|||||||
if (_current_tex_mat->has_stage(stage)) {
|
if (_current_tex_mat->has_stage(stage)) {
|
||||||
GLP(LoadMatrixf)(_current_tex_mat->get_mat(stage).get_data());
|
GLP(LoadMatrixf)(_current_tex_mat->get_mat(stage).get_data());
|
||||||
} else {
|
} else {
|
||||||
|
GLP(LoadIdentity)();
|
||||||
|
|
||||||
// For some reason, the glLoadIdentity() call doesn't work on
|
// For some reason, the glLoadIdentity() call doesn't work on
|
||||||
// my Dell laptop's IBM OpenGL driver, when used in
|
// my Dell laptop's IBM OpenGL driver, when used in
|
||||||
// conjunction with glTexGen(), below. But explicitly loading
|
// conjunction with glTexGen(), below. But explicitly loading
|
||||||
// an identity matrix does work.
|
// an identity matrix does work. But this buggy-driver
|
||||||
// GLP(LoadIdentity)();
|
// workaround might have other performance implications, so I
|
||||||
GLP(LoadMatrixf)(LMatrix4f::ident_mat().get_data());
|
// leave it out.
|
||||||
|
//GLP(LoadMatrixf)(LMatrix4f::ident_mat().get_data());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
report_my_gl_errors();
|
report_my_gl_errors();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user